PY - Year-to-date PC Value
 The pay component value for the entire year may be referenced with the PY Operand Type. The YTD file will be referenced. 
This only includes closed pays in history, and does not include the current payrun value of the pay components.
Statement:			Let Global variable Reg Hours be equal to year-to-date hours worked PC then exit.
Line	CMD	OT	Operand 1	OPER	OT	Operand2	OT	Operand3	If Goto	Else GoTo
00010	LET	$G	REG HOURS	EQ	PY	296			99999	
99999	EXIT								99999	

Statement:			Let Global variable Reg Hours be equal to total year-to-date hours worked (year-to-date plus current pay) then exit.
Line	CMD	OT	Operand 1	OPER	OT	Operand2	OT	Operand3	If Goto	Else GoTo
00010	LET	V	YEAR END	EY	$S	PERIOD-START-DATE			00020	
00020	LET	V	HOURS TO YEAR END	PCPL	PT	296	V	YEAR END	00030	
00030	LET	$G	REG HOURS	ADD	PY	296	V	HOURS TO YEAR END	99999	
99999	EXIT								99999