Page 1 of 1

JCL Creating Timestamp

PostPosted: Tue Oct 07, 2008 8:10 pm
by fuuss
I need a JCL which create a member with the actual Date or /and the actual Time.
I don't have icetool. Is it possible to use iebgener ?
The date should be in format yymmdd time hh:mm

Every help is really appreciated


Chris

Re: JCL Creating Timestamp

PostPosted: Tue Oct 07, 2008 11:55 pm
by Bill Dennis
What SORT product do you have?

Re: JCL Creating Timestamp

PostPosted: Wed Oct 08, 2008 12:17 am
by MrSpock
Here's two very similar options:

//STEP1    EXEC PGM=SORT
//SORTIN   DD   *
 
/*
//SORTOUT  DD   DISP=SHR,DSN=THE.PDS(MEMBER1)
//SYSOUT   DD   SYSOUT=*
//SYSIN    DD   *
  INREC FIELDS=(DATE1,X,TIME)
  OPTION COPY
  OUTREC FIELDS=(3,6,X,10,5)
/*
//*
//STEP2    EXEC PGM=EZACFSM1
//SYSIN    DD   *
&LYYMMDD &LHR:&LMIN
/*
//SYSOUT   DD   DISP=SHR,DSN=THE.PDS(MEMBER2)
//*

Re: JCL Creating Timestamp

PostPosted: Wed Oct 08, 2008 2:06 pm
by fuuss
Oh Perfekt Both method are working like charm thank you very much
It is very interesting comparing those 2 version.


Thank you