Page 1 of 1

How to get the pervious day's date in the Header

PostPosted: Thu Apr 02, 2009 6:45 pm
by bodhi
Hello everyone,

Is it possible to get the pervious day's date in the Header of the file. From below sort card I am able to get the current date but unable to get the pervious date in the header of the file.

//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//SORTIN DD Input dataset
//SORTOUT DD outputdatset
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,
HEADER1=('HEADERG 0000000000 0000000',DATE=(4MD-))
/*

Can any one help in out on this problem.

Thanks
Bodhi

Re: How to get the pervious day's date in the Header

PostPosted: Fri Apr 03, 2009 12:25 am
by Alissa Margulies
Hello Bodhi.

Try the following:
&DATE=(4MD-)-1


Regards,

Re: How to get the pervious day's date in the Header

PostPosted: Tue Apr 07, 2009 9:57 am
by bodhi
Hello Alissa,

I got the below error message:

SYSIN :
SORT FIELDS=COPY
OUTFIL REMOVECC,
HEADER1=('HEADERG 0000000000 0000000',&DATE=(4MD-)-1)
*
WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE

Re: How to get the pervious day's date in the Header

PostPosted: Wed Apr 08, 2009 8:24 pm
by Alissa Margulies
Bodhi,

Support for DATE with an offset was included in SyncSort for z/OS 1.3.

It appears that you are running an earlier release of the product. I would recommend that you contact your system programmer and request that the current release of SyncSort be installed.

Regards,