Page 1 of 1

How to subtract a constant from a date

PostPosted: Wed Jun 08, 2011 5:45 pm
by coollearner
I have a file with dates(mm-dd-yyyy)
e.g.,
02-04-2011
03-09-2010
05-07-1999

I want to subtract 999 from all these dates.
Please let me know how to do this.

Thanks In advance

Re: How to subtract a constant from a date

PostPosted: Wed Jun 08, 2011 8:43 pm
by Frank Yaeger
What does 999 represent? Days, months, years, something else?

Show your expected output.

Give the RECFM and LRECL of the input file.

Also, run this job and show the //SYSOUT messages you receive, so I can see what level you're at:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD *
RECORD
//SORTOUT DD DUMMY
//SYSIN    DD    *
    OPTION COPY
/*