Page 1 of 1

Need date in header in a particular format.

PostPosted: Wed Oct 14, 2009 9:31 pm
by bodhi
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

Re: Need date in header in a particular format.

PostPosted: Thu Oct 15, 2009 7:59 pm
by Alissa Margulies
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.