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

USING "AFTER" parameter in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tamsmukh

New User


Joined: 24 Jan 2008
Posts: 5
Location: san antonio,Tx

PostPosted: Fri Feb 01, 2008 8:27 am
Reply with quote

I have a job xxxxxx5 which should run only after jobs xxxxxx1 and xxxxx4 have completed. How can I add the dependancy for both the jobs in xxxxxx5 using AFTER parameter? Currently the code is like this:

//xxxxxx5 job (10280it000000,xx,1234),'tso-ml-time',
// CLASS=X,MSGCLASS=J,NOTIFY=TXMV123
//*
/*JOBPARM L=99
//*
//*
/*AFTER xxxxxx1
//*
//CNTLR EXEC BTSL
//*
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 01, 2008 10:28 am
Reply with quote

Well, since /*AFTER isn't a JCL parameter, may I ask what it's relevance/function is?
Back to top
View user's profile Send private message
tamsmukh

New User


Joined: 24 Jan 2008
Posts: 5
Location: san antonio,Tx

PostPosted: Sat Feb 02, 2008 12:39 am
Reply with quote

If we code this parameter , then whatever jobname is mentioned in the parameter, our job will get executed only after the jobname mentioned in the parameter has finished executing.
In the above example xxxxxx5 will execute only after xxxxxx1 has finished executing.This way we can set dependancy of one job on another.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 02, 2008 12:42 am
Reply with quote

Hello,

It sounds like this may be something that is part of your scheduling system.

I'd suggest you talk with your scheduling people to see if what you want to do is possible and if so, how to define it.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Feb 02, 2008 12:45 am
Reply with quote

I haven't seen the /*AFTER in many years, I think it is a local JCL addition. From what I can remember it could only apply to 1 job and that job had to executing or a least in the queue before your job was submitted.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top