Author: tecnokrat
Subject: 2 byte YEAR from Y'DATE2' field
Posted: Tue Feb 07, 2017 12:05 pm (GMT 5.5)
Hi,
I have been using the DATE2 field for formatting in the sort card for Overlay.
The condition is to overlay the date field in the file with previous month and year of YYMM format but the overlay option is unable to hold the Y'DATE2'-1
The sort card throws a syntax error for using Y'DATE2'-1.
Subject: 2 byte YEAR from Y'DATE2' field
Posted: Tue Feb 07, 2017 12:05 pm (GMT 5.5)
Hi,
I have been using the DATE2 field for formatting in the sort card for Overlay.
The condition is to overlay the date field in the file with previous month and year of YYMM format but the overlay option is unable to hold the Y'DATE2'-1
Code: |
INREC IFTHEN=(WHEN=(1,4,CH,EQ,X'00',OR,1,4,CH,EQ,X'40'), OVERLAY=(1:Y'DATE2'-1)) |
The sort card throws a syntax error for using Y'DATE2'-1.