Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Job exceeds more than 255 steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
abhijit.nayak01

Active User


Joined: 22 Mar 2009
Posts: 157
Location: South Africa

PostPosted: Sat Feb 27, 2010 3:45 pm    Post subject: Job exceeds more than 255 steps
Reply with quote

Hi,

My job is executing a procedure 10 times and that procedure has 25 steps that means a total of 250 steps are present now for the job. Now due to requirement changes i added 2 steps to the procedure and due to this the number of steps for the job is now 270. So due to this the job is abending. Is there any way except splitting the job to handle this abend.

Thanks,
Abhijit.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Feb 27, 2010 4:42 pm    Post subject:
Reply with quote

Unfortunately not, it has to be split.
Back to top
View user's profile Send private message
jctgf
Currently Banned

Active User


Joined: 04 Nov 2006
Posts: 109

PostPosted: Mon Mar 01, 2010 12:52 am    Post subject: Re: Job exceeds more than 255 steps
Reply with quote

Sometimes using IDCAMS helps solve this kind of problem.

In order to avoid an abend when creating a sam file that already exists, some installations require you to delete the file before creating it.

If you use a different step to delete each sam file, you can replace all of them for a single Idcams step.

The Idcams will use a card with several scratch commands in it, each one for one sam file you want to delete.

Check the example bellow:

Before:
Code:

//DELET1 EXEC PGM=SYS000,PARM='DATA-SET-NAME-1'
//DELET2 EXEC PGM=SYS000,PARM='DATA-SET-NAME-2'
//DELET3 EXEC PGM=SYS000,PARM='DATA-SET-NAME-3'
//*
//SORT EXEC PGM=SORT
//SORTIN  DD DSN=...
//SORTOF1 DD DSN=DATA-SET-NAME-1,DISP=(NEW,CATLG,)...
//SORTOF2 DD DSN=DATA-SET-NAME-2,DISP=(NEW,CATLG,)...
//SORTOF3 DD DSN=DATA-SET-NAME-3,DISP=(NEW,CATLG,)...
//SYSIN   DD DSN=...


 


After:
Code:

//DELETE EXEC PGM=IDCAMS
//SYSIN DD DSN=CARDPDS(CARDDELE),DISP=SHR
//*
//SORT EXEC PGM=SORT
//SORTIN  DD DSN=...
//SORTOF1 DD DSN=DATA-SET-NAME-1,DISP=(NEW,CATLG,)...
//SORTOF2 DD DSN=DATA-SET-NAME-2,DISP=(NEW,CATLG,)...
//SORTOF3 DD DSN=DATA-SET-NAME-3,DISP=(NEW,CATLG,)...
//SYSIN   DD DSN=...


Content of carddele:

Code:

SCRATCH DATA-SET-NAME-1
SCRATCH DATA-SET-NAME-2
SCRATCH DATA-SET-NAME-3
SET RETURN-CODE TO 0


In the example above, the files were initially deleted with an utility program named SYS000. It's a good program but can only scratch a file at a time.

Then, to reduce the total number of steps in the procedure, delet1/delet2/delet3 were replaced for one Idcams step only.

Please don't take into considerations any syntax mistakes.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 01, 2010 2:20 am    Post subject:
Reply with quote

Hello,

Many (most?) jobs have a "housekeeping" step at the beginning that is either an IEFBR14 (using disp=mod to prevent dataset not found problems) or IDCAMS to delete datasets that will be created durint ghe run. There is no reason for there to be one step per file, unless more than housekeeping is going on.

Quote:
Please don't take into considerations any syntax mistakes.
Please don't post "solutions" that you don't have time/inclination to test when it is a solution that is trivial to test. . .
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Mar 01, 2010 2:56 am    Post subject:
Reply with quote

dick scherrer wrote:
Please don't post "solutions" that you don't have time/inclination to test when it is a solution that is trivial to test. . .
So if I know the solution but don't have access to a MF or can't find the proper manual I should just keep my mouth shut? icon_wink.gif
Back to top
View user's profile Send private message
jctgf
Currently Banned

Active User


Joined: 04 Nov 2006
Posts: 109

PostPosted: Mon Mar 01, 2010 3:43 am    Post subject:
Reply with quote

this is a proven solution.
we've done this several times.
it works.
I can't post from my work place so I can't provide an answer without syntax errors.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 01, 2010 4:51 am    Post subject:
Reply with quote

Hello,

Quote:
So if I know the solution but don't have access to a MF or can't find the proper manual I should just keep my mouth shut?
Some people have earned (by the consistent quality of their contributions over a long period of time) a "pass". . . Even if they don't have an alter-ego icon_smile.gif

Quote:
I can't post from my work place so I can't provide an answer without syntax errors.
Usually, posting "real" things from a system should be avoided. . . This does not mean that it cannot be posted changing anything that would identify the organization or some individual.
Back to top
View user's profile Send private message
jctgf
Currently Banned

Active User


Joined: 04 Nov 2006
Posts: 109

PostPosted: Mon Mar 01, 2010 4:58 am    Post subject:
Reply with quote

I can't connect to this site from my work place.
I am aware I don't have the "pass".
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 01, 2010 5:09 am    Post subject: Reply to: Job exceeds more than 255 steps
Reply with quote

Hello,

Quote:
I can't connect to this site from my work place.
Unfortunate, but possibly you can connect to work from elsewhere? I've been using remote connections for so long i sometimes forget this is not always available. Bummer.

Quote:
I am aware I don't have the "pass".
Yet. . . icon_smile.gif

You probably will icon_wink.gif

d
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts Count the number of JCL executable steps nartcr JCL & VSAM 5 Wed Nov 05, 2014 2:57 am
No new posts EXCEEDS THE LENGTH LIMITATIONS Pedro JCL & VSAM 6 Fri Sep 12, 2014 4:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us