Page 1 of 1

Timestamp without using a language in JCL.

Posted: Mon Oct 06, 2014 2:47 pm
by Dipak Dhoble
Hi,

I'm looking for the suggestion using which I can create create a member with the system-Date and the Time. I can not use ICETOOL. Can I use some other utility to do this?
The date and time should be in yymmdd and hh:mm formats respectively.

Thanks for any help on this.

Re: Timestamp without using a language in JCL.

Posted: Mon Oct 06, 2014 3:07 pm
by Anuj Dhawan
Dipak,

With SORT, this should help you:

Code: Select all

//STEP01    EXEC PGM=SORT
//SORTIN   DD   *
  
/*
//SORTOUT  DD   DISP=SHR,DSN=YOUR.PDS(MEMBER1)
//SYSOUT   DD   SYSOUT=*
//SYSIN    DD   *
  INREC FIELDS=(DATE1,X,TIME)
  OPTION COPY
  OUTREC FIELDS=(3,6,X,10,5)
/*
//*

Re: Timestamp without using a language in JCL.

Posted: Wed Jan 07, 2015 12:10 pm
by Dipak Dhoble
Thanks Anuj, this is working as required.

Re: Timestamp without using a language in JCL.

Posted: Thu Jan 08, 2015 12:09 pm
by Anuj Dhawan
Great, thanks for the feedback.

Re: Timestamp without using a language in JCL.

Posted: Mon Jan 12, 2015 5:26 pm
by nicc
Of course ICETOOL is part of Sort (or the other way around)!