Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: 2 byte YEAR from Y'DATE2' field

$
0
0
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

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.


Viewing all articles
Browse latest Browse all 8500

Trending Articles