cancel
Showing results for 
Search instead for 
Did you mean: 

BPC NW 10: good practice on generating data on script logic

Former Member
0 Kudos

hi bpc gurus:

I have a script logic (SL) which works fine, I execute it passing the same variable values several times in order to be sure that data generated is consistent (avoiding duplicates) and the results are fine but I d like to ask if it is a good practice to include some code to clean the data generated in the last execution before generate new data.

regards

jav

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

Hi Jav,

Yes, the good practice is:

1. You have some scope, and you want to generate some data in this scope.

2. Clear scope using:

*XDIM_MEMBERSET SOMEDIM=SOMESCOPE...

...

*WHEN ACCOUNT

*IS *

*REC(EXPRESSION=0)

*ENDWHEN

3. Perform the required script calculations resulting in the data in the scope.

B.R. Vadim

Former Member
0 Kudos

Thanks Vadim.

Former Member
0 Kudos

Hi,

Script logic is used to generate new records or modify the existing ones. Deleting some existing record is basically modifying it by changing the value to 0. This can very well be done with the help of the script provided by Vadim.

Hope this helps.

Answers (0)