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 automatically trigger a job using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to automatically trigger a job using REXX
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    Post subject:
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    Post subject: Re: How to automatically trigger a job using REXX
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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