I know that we can only handle 38 months data therefor I would like to change it to only include 38 months from current date to prevent me from having to change the sort card every year. Instead of omitting the previous years data I tried to include the date for the 38 months.
I tried the following:
Code:
INCLUDE COND=(06,04,Y2T,GE,Y'DATE2'-38,AND,06.04,Y2T,LE,Y'DATE2')
BUT GOT an data acception error (OC7)
then I try the following:
Code:
INCLUDE COND=(06,04,CH,GE,Y'DATE2'-38,AND,06.04,CH,LE,Y'DATE2')
BUT get a format incompatible error :
Code:
INCLUDE COND=(06,04,CH,GE,Y'DATE2'-38,AND,06.04,CH,LE,Y'DATE2')
*
WER253A INCLUDE/OMIT FORMATS INCOMPATIBLE
INCLUDE COND=(06,04,CH,GE,Y'DATE2'-38,AND,06.04,CH,LE,Y'DATE2')
what I'm I missing I check the manual but cannot find any example ...the date is numeric with yymm format but it seem to sometimes contain zeroes
Using my own sample data, I submitted the following and got RC=0 with the expected records in my output.
Code:
//SYSIN DD *
SORT FIELDS=COPY
INCLUDE COND=(06,04,Y2T,GE,Y'DATE2'-38,AND,06,04,Y2T,LE,Y'DATE2')
/*
Based on the 0C7 you received, I can only assume that you have invalid data in your date field. _________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum