Page 1 of 1

Date Or Timestamp in Sequential Sile or GDG name

PostPosted: Wed May 06, 2009 9:40 pm
by dbrogdon
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)

Re: Date Or Timestamp in Sequential Sile or GDG name

PostPosted: Wed May 06, 2009 9:47 pm
by MrSpock
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.

Re: Date Or Timestamp in Sequential Sile or GDG name

PostPosted: Wed May 06, 2009 10:09 pm
by dbrogdon
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

Re: Date Or Timestamp in Sequential Sile or GDG name

PostPosted: Wed May 06, 2009 10:26 pm
by MrSpock
Did you come up with any ideas/plans that would make this process work for your environment?

Re: Date Or Timestamp in Sequential Sile or GDG name

PostPosted: Wed May 06, 2009 10:34 pm
by Bill Dennis
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)                                             

Re: Date Or Timestamp in Sequential Sile or GDG name

PostPosted: Fri May 08, 2009 4:14 pm
by expat
Most scheduling software has date/time capabilities.