Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Maximum number of steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Maximum number of steps
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    Post subject:
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    Post subject: Re: Maximum number of steps
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    Post subject: Re: Maximum number of steps
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    Post subject: Re: Maximum number of steps
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    Post subject: Re: Maximum number of steps
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Mon Feb 27, 2006 4:49 pm    Post subject: Re: Maximum number of steps
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    Post subject: Re: Maximum number of steps
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    Post subject:
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    Post subject: Re: Maximum number of steps
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    Post subject:
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    Post subject: Re: Maximum number of steps
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    Post subject: Re: Maximum number of steps
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    Post subject:
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    Post subject:
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: 464

PostPosted: Wed Mar 01, 2006 2:33 pm    Post subject: Re: Maximum number of steps
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    Post subject:
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: 287
Location: Basel, Switzerland

PostPosted: Thu Mar 02, 2006 2:39 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts CPU time Vs Number of records Nileshkul JCL & VSAM 5 Mon May 09, 2016 4:05 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us