Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

What is the scope of audit variables?

$
0
0

I have an audit variable I am looking to store as a global variable.

 

I'm not sure how to do this, I have my rule setup as a follows:

 

http://i.imgur.com/70OFhoq.png

 

$RecordsMissingBP is a global variable.

 

The script the audit rule executes is:

 

    $RecordsMissingBP=$Count_Match_BPS;

    print('Legacy IDs found with no matching BP::' || $Count_Match_BPS );

 

 

However, this doesn't actually set the global variable as I expect it to. When I check the value later it is empty.

 

Is the scope of the $RecordsMissingBP limited to not even be the script? I'm not sure why I cannot use this variable in the script it calls.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>