JCL Creating Timestamp



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

JCL Creating Timestamp

Postby fuuss » Tue Oct 07, 2008 8:10 pm

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
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL Creating Timestamp

Postby Bill Dennis » Tue Oct 07, 2008 11:55 pm

What SORT product do you have?
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: JCL Creating Timestamp

Postby MrSpock » Wed Oct 08, 2008 12:17 am

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)
//*
User avatar
MrSpock
Global moderator
 
Posts: 808
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: JCL Creating Timestamp

Postby fuuss » Wed Oct 08, 2008 2:06 pm

Oh Perfekt Both method are working like charm thank you very much
It is very interesting comparing those 2 version.


Thank you
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post