Following could be the lines used for this purpose, if you are calling the PCR with PTIP.
ZTO1 */****
D OUTWPPERSG Empl.Grp?
* COLOP * -Others;No further action
X D OUTWPPERSB -X - ESG?
X 03 Z GCY ZTO2 - - - -03 - Check tolerance
Y D OUTWPPERSB - Y - ESG?
Y 01 Z GCY ZTO2 - - - 01 -Check tolerance
pcr ZTO2 */**** Check tolerance
... Here you insert lines for tolerance check
The purpose of using a second PCR is to use the same set of PCR lines for one function or business rule.
Note, the above applies if the same business rule applies for both EG/ESG = X/03 and Y/01. If the rule is different, then a similar PCR would be required for the second one.
Alternatively, the pcr ZTO2 lines can be made as another ESGG/Wage/time type part of the first pcr as below. This would also minimize the number of PCR's
ZTO1 */****
D OUTWPPERSG Empl.Grp?
* COLOP * -Others;No further action
X D OUTWPPERSB - X - ESG?
X 03 Z GCY ZTO1J - - - 03 - Check tolerance
Y D OUTWPPERSB - Y - ESG?
Y 01 Z GCY ZTO1J - - - -01 - Check tolerance
ZTO1 J/****
........ Here you insert lines for tolerance check
..........