cancel
Showing results for 
Search instead for 
Did you mean: 

Amounts double in LPBEG Run 1,2,3,etc.

Brandyn_Richmon
Participant
0 Kudos


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

Accepted Solutions (1)

Accepted Solutions (1)

former_member235056
Active Contributor
0 Kudos

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

Brandyn_Richmon
Participant
0 Kudos

Thank you Ameet.

I needed to ZERO=&xxxx at end of every end condition in my PCR.

Brandyn

Answers (0)