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

How to automatically trigger a job using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yogeshbabu

New User


Joined: 30 Nov 2005
Posts: 19
Location: India

PostPosted: Thu Mar 30, 2006 12:07 pm
Reply with quote

Hi,

My requirement is like, I need to automatically trigger a JCL, when a some other job ends successfully.
Can anyone help me in doing this in REXX?
Back to top
View user's profile Send private message
martijn

New User


Joined: 09 Mar 2006
Posts: 14
Location: The Netherlands

PostPosted: Thu Mar 30, 2006 2:59 pm
Reply with quote

Hi,

If you want to submit a new job when a job finishes successfully (and you don't use a scheduler to do the work for you), why not simply copy the JCL to the internal reader?:
Code:

//* -----------------------------------------------------
//* *** COPY - SUBMIT JOB TO INTRDR                     
//* -----------------------------------------------------
//COPY    EXEC PGM=ICEGENER,COND=(0,NE)                 
//SYSPRINT DD SYSOUT=*                                   
//SYSIN    DD DUMMY                                     
//SYSUT1   DD  DSN=YOUR.JOB.LIBRARY(YOURJOB),DISP=SHR   
//SYSUT2   DD  SYSOUT=(A,INTRDR)                         


N.B.: copying jcl to the internal reader is essentially the same as submitting the jcl. In the above example, the job located in YOUR.JOB.LIBRARY(YOURJOB) will be submitted!

Hope this helps...
Back to top
View user's profile Send private message
yogeshbabu

New User


Joined: 30 Nov 2005
Posts: 19
Location: India

PostPosted: Mon Apr 03, 2006 7:26 am
Reply with quote

Hi Martijn,

Thanks for your input.
Can you pls explain me the concept of internal reader? Here the previous Job is a production job which is run on a daily basis. I only have the time when the job will begin and end (approx).

Every time when the job runs, I want to copy a VSAM file.
Can you pls guide me

Thanks & Regards,
Yogesh
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top