REPOSTING
I have also tried another approach:
The input starts the same as above. In this scenario rule ZTM4 * **** is
000010 | D | WGTYP? | |||
000020 | **** | ADDWT * | |||
000030 | 1169 | ADDWT * | ZERO= N | ZERO= R | SUBWT 9001 |
and gives the following result as I want.
1169 | WOC Reg | 1.17 | 8 | 9.36 |
9001 | PERS Specia | -3 | ||
2840 | New PERS Ru01 | 1 |
But this applies to all employees.
I want to make it conditional upon the existence of WT2840 for an employee. When I have ZTM3 set up as follows:
D | WGTYP? | |
**** | ADDWT * | |
2840 | Z | GCYGZTM4 |
It successfully branches to GCY ZTM4 but goes not pick up the 1169 Var code.
ZTM3 | * | WGTYP? | |
ZTM3 | * | 2840 | GCYGZTM4 |
ZTM4 | * | WGTYP? | |
ZTM4 | * | **** | ADDWT * |
Here are the results. This solution would work if I can get GCY ZTM4 to process Var Key 1169.