on 07-17-2014 2:52 PM
HI All,
Ive written a pcr to check some 401k limits. My pcr is using variables that I am initializing (ZERO=&xxxx) at the start of the loop, but for each time the loop is processed (1.Run, 2.Run, 3.Run, 4.Run, etc.) the amounts in my pcr double. So if the loop run 10 times, my values are AMT * 10.
Is there a way to ensure my pcr only processes in the first loop? Or, what am I missing?
Any help is appreciated.
Thanks!
Brandyn
Hi Brandyn,
Did you write ZERO=&xxxx at end of every end condition in your PCR and does it not work?
Do try clearing the varaiables under separate rule as-
*
****
ZERO=&xxxx
ZERO=&yyyy
Also, if you would like you can try using LPBEG function parameter 2 as PCF if before your rule to process your rule only for first result in loop and then end it by LPEND.
Thanks,
Ameet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.