Need date in header in a particular format.



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

Need date in header in a particular format.

Postby bodhi » Wed Oct 14, 2009 9:31 pm

Hello,
I have a requirement in which i need to add the date in header and the format of record should be like given below

Date'10-14-09'

I have a jcl through which we can add date in header but i am unable to add the " ' " in header with date.Currently i am using the below card to get the date in header

SUM FIELDS=NONE
OUTFIL FNAMES=SORTOUT,
HEADER1=(' DATE: ',DATE=(4MD-)),REMOVECC

Please help me out

Thank you
Bodhi
bodhi
 
Posts: 52
Joined: Mon Jul 30, 2007 5:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need date in header in a particular format.

Postby Alissa Margulies » Thu Oct 15, 2009 7:59 pm

OUTFIL HEADER1=(' DATE: ','''',DATE=(4MD-),''''),REMOVECC

The above code produces the output below:

  DATE: '2009-10-15'

If you want the date in 'mm-dd-yy' format, let me know and I will modify the code for you.
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: 3 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post