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



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

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

Postby bodhi » Thu Apr 02, 2009 6:45 pm

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
bodhi
 
Posts: 53
Joined: Mon Jul 30, 2007 5:01 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby Alissa Margulies » Fri Apr 03, 2009 12:25 am

Hello Bodhi.

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


Regards,
Alissa Margulies
Syncsort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Alissa Margulies
Global moderator
 
Posts: 369
Joined: Tue Feb 26, 2008 11:15 pm
Location: USA
Has thanked: 1 time
Been thanked: 1 time

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

Postby bodhi » Tue Apr 07, 2009 9:57 am

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
bodhi
 
Posts: 53
Joined: Mon Jul 30, 2007 5:01 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby Alissa Margulies » Wed Apr 08, 2009 8:24 pm

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,
Alissa Margulies
Syncsort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Alissa Margulies
Global moderator
 
Posts: 369
Joined: Tue Feb 26, 2008 11:15 pm
Location: USA
Has thanked: 1 time
Been thanked: 1 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post