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 

How to Code More than 255 steps ???

 
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
javedsk12
Beginner


Joined: 14 Dec 2007
Posts: 66
Topics: 36
Location: pune

PostPosted: Sat Dec 15, 2007 12:54 am    Post subject: How to Code More than 255 steps ??? Reply with quote

HI friends,


suppose i need to code more than 255 steps in a single jcl, i learnt from an ebook that we can split the jcl into two different jcl and we can code can anyone help on this



javed : Wink
_________________
javed

-----------------------
The Word Impossible it self says i am possible(im possible)
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sat Dec 15, 2007 1:39 am    Post subject: Reply with quote

The terminology is "a job", not "a jcl". This is very important because the term "a jcl" really has no meaning (it seems to be an invention of Indian data processing schools of the past couple of years). Some people use "a jcl" to mean a file with one or more jobs (this should be called a job stream). Some use it to mean "a job". Some use it to mean a file containing any JCL (a proc, an include, etc., but not a whole job). The worst offenders are those that use "a jcl" to mean any input to a SORT product Evil or Very Mad (that's just dumb). And of course, many people use it without having any idea what they mean Smile which makes sense since the term is meaningless to begin with.

To answer your question, just split the steps into individual jobs of 255 or fewer steps. These can still be generated into a single file but are separated by job cards. Usually, the only reason to write more than 255 job steps is because you are writing some job(s) to copy many data sets. If this is the case (and there are probably much better ways to copy many files, but I'll leave that to another post), then it means that the individual steps do not depend on the output of previous steps so it is safe to throw in a job card every so often. If you don't want the jobs to run in parallel and take up all the system initiators, use the same job name on all job cards.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
javedsk12
Beginner


Joined: 14 Dec 2007
Posts: 66
Topics: 36
Location: pune

PostPosted: Sat Dec 15, 2007 3:20 am    Post subject: Reply with quote

thanks but can you show me how to code it still i am not getting it? bonk
_________________
javed

-----------------------
The Word Impossible it self says i am possible(im possible)
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sat Dec 15, 2007 8:31 am    Post subject: Reply with quote

//job1 JOB other parameters
//step1 jcl
//step2 jcl
:
//stepn jcl
// end of job1
//job2 JOB other parameters
//step1 jcl
//step2 jcl
:
//stepn jcl
// end of job2

:
:
//JOBn JOB
//step1 jcl
//step2 jcl
:
//stepn jcl
// end of jobn

If you do not know how to code JCL read the manual - link at the top of the screen
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Dec 17, 2007 2:45 am    Post subject: Re: How to Code More than 255 steps ??? Reply with quote

javedsk12 wrote:
HI friends,


suppose i need to code more than 255 steps in a single jcl, i learnt from an ebook that we can split the jcl into two different jcl and we can code can anyone help on this



javed : Wink

Put 255 steps in one JCL and the rest in one more JCL and execute.
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Dec 17, 2007 9:00 am    Post subject: Re: How to Code More than 255 steps ??? Reply with quote

vkphani wrote:

Put 255 steps in one JCL and the rest in one more JCL and execute.


This, by the way, is a perfect example of what I was talking about where the term "a JCL" is meaningless. Does "one JCL" mean a job stream, a sequential file with multiple jobs, a PDS with multiple members, or a procedure and a job stream that references that procedure? It could mean any of those things.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
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