View previous topic :: View next topic
|
Author |
Message |
SSR Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 38
|
|
|
|
hi,
Can anyone please let me know how many steps(maximum) can we give in a jcl
Thanks
SSR |
|
Back to top |
|
|
prabs2006
Active User
Joined: 12 Jan 2006 Posts: 103
|
|
|
|
255 |
|
Back to top |
|
|
sunojsm Warnings : 1 New User
Joined: 21 Jun 2004 Posts: 33 Location: Andorra
|
|
|
|
ya its 255 only |
|
Back to top |
|
|
unni_nss
New User
Joined: 20 Sep 2005 Posts: 19
|
|
|
|
Hi,
Is it 255 or 225.I think its 225.let me know,if i am wrong.
Unni. |
|
Back to top |
|
|
jackal Currently Banned New User
Joined: 21 Jan 2006 Posts: 48 Location: india
|
|
|
|
Hi,max step limit is 255.
Jackal |
|
Back to top |
|
|
SSR Warnings : 1 New User
Joined: 26 Feb 2006 Posts: 38
|
|
|
|
hi all,
Thanks a lot. |
|
Back to top |
|
|
umeshkmrsh
New User
Joined: 21 Sep 2005 Posts: 79 Location: India
|
|
|
|
WOW!! you all said its .... 255
|
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
From the manual...
Quote: |
Steps in a Job
A job can be simple or complex; it can consist of one step or of many steps that call many in-stream and cataloged procedures. A job can consist of up to 255 job steps, including all steps in any procedures that the job calls. Specification of a greater number of steps produces a JCL error. |
Regards,
Priyesh. |
|
Back to top |
|
|
Smarty
New User
Joined: 27 Feb 2006 Posts: 2
|
|
|
|
Hi all,
You all have given the answer as 255. but can anyone please tell me why is the max. no of steps=255. I was asked this in an interview and what is the max no. of EXEC statements in a step and in a JOB??? |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Hi,
I think Allowable ABENDs for a routine is 0-255 . thats why max no of steps in a job is 255.
Max no exec statements in a job is 255.
There is no meaning of max no of exec statements in a step. why bexause one step will contain one exec statament. |
|
Back to top |
|
|
Smarty
New User
Joined: 27 Feb 2006 Posts: 2
|
|
|
|
But the step name is not mandatory until reference is required to the step. so, we can write the first EXEC statement with STEP01 and after that without the stepnames. So, in this case what is the maximum number of EXEC statements in the whole job? |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Hi,
In a whole job the max no of EXEC statements are 255 irrespective of wether u gave step names or not. |
|
Back to top |
|
|
KS
New User
Joined: 28 Feb 2006 Posts: 91 Location: Chennai
|
|
|
|
Hi SSR
A maximum of 255 EXEC statement can be coded in an single job.
But if there is a situation, where we need to code more than 255 steps in a JOB then we need to split the jcl into two jcls , at the end of the first jcl check the condition code and initiate the second jcl. |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
SSR,
Smarty,
Quote: |
You all have given the answer as 255. but can anyone please tell me why is the max. no of steps=255 |
The operating system maintains, by design, counters of 1 byte for the unique step ID (since a step can contain duplicate names, or no name). The max unsigned value that can be contained in 1 byte is x'FF' = 255.
Dave |
|
Back to top |
|
|
kumaresh.M
New User
Joined: 17 Feb 2006 Posts: 64 Location: Bangalore
|
|
|
|
hi guys if we give more than 255 steps what happen to my job?
what error i got?
anybody try this,
with regards,
kumaresh.M |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Hi,
if u gave more than 255 steps ur job will get an error like 'job has exceed max no of exec statements' |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
Quote: |
hi guys if we give more than 255 steps what happen to my job?
what error i got?
anybody try this,
with regards,
kumaresh.M |
Job will abend with JCL error.
Regards
Rupesh |
|
Back to top |
|
|
Ayyappan
New User
Joined: 05 Jul 2005 Posts: 31 Location: India
|
|
|
|
Hi,
If we give more than 255 steps, we will get JCL error as per Priyesh's post.
Thanks.
Ayyappan |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
pls, try yourself...
just note, all steps must not past the 255 limit,
including procedure steps! but don't do it,
you will loose oversight, instead design small
portions and split such large objects in several
small ones...
martin9 |
|
Back to top |
|
|
|