Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to capture RUNDATE in JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How to capture RUNDATE in JCL?
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    Post subject: Hi
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts Change Data Capture Ron Klop DFSORT/ICETOOL 14 Fri Apr 15, 2016 2:56 pm
No new posts Sort,remove & capture dup recs ha... subratarec DFSORT/ICETOOL 21 Tue Apr 28, 2015 9:28 pm
No new posts DYNALLOC macro in Assember -Is there ... sudarshan.srivathsav PL/I & Assembler 2 Wed May 07, 2014 10:11 pm
No new posts Synchronous Data Capture Exit Use Michael Askins IMS DB/DC 4 Wed May 07, 2014 4:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us