cancel
Showing results for 
Search instead for 
Did you mean: 

Variable table read in PCR

0 Kudos

how to read variable table value.

if it's like : ADDWT&MY10. As per my understanding & is used for read variable table .

Need to more on variable table and how it maintained . Where I find MY10

Accepted Solutions (1)

Accepted Solutions (1)

former_member94258
Active Participant
0 Kudos

You can use PRINT&MY10 in your rule, then you can see the MY10's Number, Rate, Amount field values.

If you want to transfer the value in MY10 to your wage type, like 9999, then you can use NUM=&MY10, RTE=&MY10 or AMT=&MY10, then

ADDWT9999.

Answers (2)

Answers (2)

former_member193210
Active Contributor
0 Kudos

Operation ADDWT&MY10 will add the current values of the WT into the Temporary Variables Table under WT MY10.

To use the temporary variable, you will then use Operations such as RTE=& MY10, NUM*& MY10 and AMT+& MY10.

To clear the temporary variable, you will use Operation ZERO=&MY10

Note that in your Payroll Schema (or one of it's Sub-Schemas), you can add Function PRINT with PAR2 = VAR before some PCRs so that when you run Payroll Simulation (or Payroll Calculation) for one employee, with the "Display log" box checked, you can see the values of all your temporary variables at that point.

In the following example, Function PRINT was added before pcr ZVR5 which will zero out the temporary variables created in the sub-schema (in cases of a loop), and other instances of PRINT VAR are added before some PCRs to help when debugging/analyzing the processing.

print-var.png

If in a pcr you use Operation NUM*& MY10 or NUM+& MY10, you may want to be able to confirm that the temporary variable MY10 holds a Number just before that pcr, just as you would like to confirm the RTE, NUM and AMT of a WT in the Input Table when a pcr is processed through Function PIT.

0 Kudos

thank a lot , it's clear now.