MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

#JI in JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Sat Feb 26, 2005 4:59 am    Post subject: #JI in JCL Reply with quote

Hi,

We have a requirement to run specific steps based on differnt schedule ids in CA-7. We found that #JI and #JEND can be used for this. Our particular job has 6 schedule ids and if it is 100, we need to execute one step and for all other schedule ids, another step need to be executed.

How can we do the checking and execute the job?

Thanks in advance
Ranjish
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon Feb 28, 2005 8:20 am    Post subject: Reply with quote

Ranjish,

#JI - Indicates the statements are to be included based on the specified scheduling criteria.

Try this to excuete only the desired step.

Code:

#JI,ID=100
       .
       . (JCL statements to be included)
       .
#JEND



Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ranjish
Beginner


Joined: 22 Dec 2002
Posts: 64
Topics: 28
Location: Chennai

PostPosted: Mon Feb 28, 2005 10:33 am    Post subject: Reply with quote

Hi Kolusu,

I will put my requirement bit more clearly.

Thejob runs with Ids 100,101,102,204 and 200

My job has 3 steps, STEP1,STEP2,STEP3.

If id=100, I need to execute step1, for other ids, I need to execute step2. Now we got the solution. We can give
#JI, ID=(101,102,204,200)

Thanks for the help.

Regards
Ranjish
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group