Date Or Timestamp in Sequential Sile or GDG name



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

Date Or Timestamp in Sequential Sile or GDG name

Postby dbrogdon » Wed May 06, 2009 9:40 pm

Is there a system symbol or symbolic or ??? that can be specified when creating a sequential file or gdg that will give either the timestamp or date (julian or greg.) ? i.e.
THE.USER.FILE.050609 (MMDDYY)
THE.USER.GDG.17220905062009 (TIMESTAMP ON GDG (+1)
dbrogdon
 
Posts: 2
Joined: Wed May 06, 2009 9:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Date Or Timestamp in Sequential Sile or GDG name

 

Re: Date Or Timestamp in Sequential Sile or GDG name

Postby MrSpock » Wed May 06, 2009 9:47 pm

No there is not. You'd have to supply your own (i.e. via a SET and/or INCLUDE statement) or, typically, the job scheduling system will supply these types of values to a job. Outside of these options, you'd need a program of some sort.

Also, FYI, both of those dataset names you've shown for your example would be invalid.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Date Or Timestamp in Sequential Sile or GDG name

Postby dbrogdon » Wed May 06, 2009 10:09 pm

Thank you for the reply.
I guess my examples were not precise enough - I agree with your statement that they would be invalid.
Here are 2 real world examples that are valid.

DB2 example of date time used by Templates in DB2 utilities.

CSTIMCP.PHOBOS1.IXOX01RP.D2009124.T180643

GDG example found in use by DB2 system archive function

DB2ARC.DBSI.ARCLG1.D09036.T1608445.A0024991
dbrogdon
 
Posts: 2
Joined: Wed May 06, 2009 9:24 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Date Or Timestamp in Sequential Sile or GDG name

Postby MrSpock » Wed May 06, 2009 10:26 pm

Did you come up with any ideas/plans that would make this process work for your environment?
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Date Or Timestamp in Sequential Sile or GDG name

Postby Bill Dennis » Wed May 06, 2009 10:34 pm

Another option is to use EZCFSM1 to generate the JCL each day. It has many dynamic variables. I think it's described in the IP Users Guide. Here's a sample:
//*                                                                       
//* IP UTILITY TO REPLACE SYSTEM SYMBOLS                                   
//*    BASED ON SYS1.PARMLIB(IEASYMXX) VALUES                             
//*                                                                       
//SYMBOLS EXEC PGM=EZACFSM1                                               
//SYSIN   DD DATA                                                         
//  job card here             
//STEP1   EXEC PGM=PGM&SYSCLONE                                           
//DD1     DD   DISP=SHR,DSN=&SYSUID..D&LYR2&LMON&LDAY..T&HR&MIN&SEC       
/*                                                                         
//SYSOUT DD SYSOUT=(A,INTRDR)                                             
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: Date Or Timestamp in Sequential Sile or GDG name

Postby expat » Fri May 08, 2009 4:14 pm

Most scheduling software has date/time capabilities.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post