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

Maximum number of steps


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

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Mon Feb 27, 2006 9:54 am
Reply with quote

hi,

Can anyone please let me know how many steps(maximum) can we give in a jcl

Thanks
SSR
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Mon Feb 27, 2006 10:15 am
Reply with quote

255
Back to top
View user's profile Send private message
sunojsm
Warnings : 1

New User


Joined: 21 Jun 2004
Posts: 33
Location: Andorra

PostPosted: Mon Feb 27, 2006 12:26 pm
Reply with quote

ya its 255 only
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Mon Feb 27, 2006 1:07 pm
Reply with quote

Hi,
Is it 255 or 225.I think its 225.let me know,if i am wrong.
Unni. icon_wink.gif
Back to top
View user's profile Send private message
jackal
Currently Banned

New User


Joined: 21 Jan 2006
Posts: 48
Location: india

PostPosted: Mon Feb 27, 2006 3:20 pm
Reply with quote

Hi,max step limit is 255.
Jackal
Back to top
View user's profile Send private message
SSR
Warnings : 1

New User


Joined: 26 Feb 2006
Posts: 38

PostPosted: Mon Feb 27, 2006 4:16 pm
Reply with quote

hi all,

Thanks a lot.
Back to top
View user's profile Send private message
umeshkmrsh

New User


Joined: 21 Sep 2005
Posts: 79
Location: India

PostPosted: Mon Feb 27, 2006 4:40 pm
Reply with quote

WOW!! you all said its .... 255

icon_biggrin.gif
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Feb 27, 2006 4:49 pm
Reply with quote

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
View user's profile Send private message
Smarty

New User


Joined: 27 Feb 2006
Posts: 2

PostPosted: Tue Feb 28, 2006 10:00 am
Reply with quote

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
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Tue Feb 28, 2006 12:37 pm
Reply with quote

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
View user's profile Send private message
Smarty

New User


Joined: 27 Feb 2006
Posts: 2

PostPosted: Tue Feb 28, 2006 12:55 pm
Reply with quote

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
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Tue Feb 28, 2006 1:26 pm
Reply with quote

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
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Tue Feb 28, 2006 8:18 pm
Reply with quote

Hi SSR icon_smile.gif

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
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Mar 01, 2006 3:19 am
Reply with quote

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
View user's profile Send private message
kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Wed Mar 01, 2006 10:09 am
Reply with 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
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Wed Mar 01, 2006 1:09 pm
Reply with quote

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
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Mar 01, 2006 2:33 pm
Reply with quote

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
View user's profile Send private message
Ayyappan

New User


Joined: 05 Jul 2005
Posts: 31
Location: India

PostPosted: Wed Mar 01, 2006 4:30 pm
Reply with quote

Hi,

If we give more than 255 steps, we will get JCL error as per Priyesh's post.

Thanks.
Ayyappan
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Thu Mar 02, 2006 2:39 pm
Reply with quote

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... icon_smile.gif

martin9
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 Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts CA7 deleting files in steps after job... CA Products 4
Search our Forums:

Back to Top