IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to capture RUNDATE in JCL?


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tricker

New User


Joined: 12 Jul 2006
Posts: 3

PostPosted: Wed Jul 12, 2006 10:33 am
Reply with quote

Hi,
I have a JCL which would be invoked by the CA-& scheduling job.Now
my requirement is when ever the CA-7 submits the job I need to get that RUNDATE and TIME information in my JCL. Based on this I need to create
extract files with names as this date.
CUrrently the jobs doesnt have this functionality and I have to incroporate that..

Does any body have any suggestion/solution?

-Tricker
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Wed Jul 19, 2006 10:51 am
Reply with quote

Use the following JCL to do that..

//STEP01 EXEC PGM=EZACFSM1
//SYSIN DD DATA,DLM=@@
//AAAAAA JOB (XXP,TEST),'THIS JOB CARD NEEDED.',
// CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP02 EXEC PGM=IEFBR14
//FILE1 DD DSN=&SYSUID..INTF.MN.Y&LYR2&LMON&LDAY,
// DISP=(MOD,DELETE,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(0,0),RLSE)
//*
//STEP03 EXEC PGM=ICEGENER
//SYSUT1 DD DUMMY
//SYSUT2 DD DSN=&SYSUID..INTF.MN.Y&LYR2&LMON&LDAY,
// DISP=(,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(100,100),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
@@
//SYSOUT DD SYSOUT=(A,INTRDR)


If you want to rename your own seqential file with date the in Step03 use your own sequential file name with symbolic parameters in SYSUT1.
You may nned to change accordingly in IEFBR14 delete step too.


-Han.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Rexx to capture output from TSO HSEND... CLIST & REXX 9
No new posts To capture the job from savers CLIST & REXX 4
No new posts outtrap does not capture within an ed... CLIST & REXX 1
No new posts Best way to Capture Auth ID of the so... COBOL Programming 1
No new posts Capture GDG Dataset Name JCL & VSAM 10
Search our Forums:

Back to Top