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
 

 

Need Help issuing FREEMAIN (SVC5) from Batch Job Stream

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
delucjh

New User


Joined: 30 Oct 2005
Posts: 2

PostPosted: Sun Oct 30, 2005 5:02 am    Post subject: Need Help issuing FREEMAIN (SVC5) from Batch Job Stream
Reply with quote

We have a batch stream with a huge number of steps (more than 200) running on OS/390 2.10. One of the last steps is a BMP in which there are some 800+ programs in the call chain under the driver.

I need a way to force a FREEMAIN just prior to the BMP step, so I can have a better chance of avoiding region abends such as SB78, S878, etc.... in the BMP.

DOES ANYONE KNOW HOW TO HELP ME?

Can I issue an SVC5 call from Assembler program or call IGVVSM24 from a COBOL/370 program?

JMD
Back to top
View user's profile Send private message

ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Mon Oct 31, 2005 7:30 am    Post subject:
Reply with quote

When you say "...just prior to the BMP step", you don't mean in the prior job step, do you? FREEMAIN'ing storage in the prior job step won't help you at all. Each job step gets a new region, it does NOT reuse the same region from the prior job step (at least, in terms of GETMAIN'ed and FREEMAIN'ed storage).

Furthermore, you cannot issue a FREEMAIN without first having issued a GETMAIN. You can't just say "free all used storage" or some such nonsense on a FREEMAIN call.

You should probably code REGION=0m (that's zero m) on the BMP job step; that will get you the maximum region permitted on your system. If the job step still fails with a S80A or similar abend, then you should break up the step into more than one step. icon_biggrin.gif [/u][/i]
Back to top
View user's profile Send private message
delucjh

New User


Joined: 30 Oct 2005
Posts: 2

PostPosted: Mon Oct 31, 2005 6:43 pm    Post subject: Re: Need Help issuing FREEMAIN (SVC5) from Batch Job Stream
Reply with quote

Barring an unqualified release of all storage at the point in time when the abend is most likely to occur, what would you suggest? We have also encountered S822 abends with this (fragmentation in the initiator) and need to avoid these issues as well.

JMD
Back to top
View user's profile Send private message
RAJ1965

New User


Joined: 07 Aug 2006
Posts: 6

PostPosted: Thu Aug 24, 2006 6:17 pm    Post subject: S878 abend
Reply with quote

In my COBOL program I am using 28 input files and 28 output files.
When I submit the job I am getting S878 abend while opening the files.
Can anyone tell me what could be the problem and how to resolve this
Back to top
View user's profile Send private message
ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Thu Aug 24, 2006 7:57 pm    Post subject: Re: Need Help issuing FREEMAIN (SVC5) from Batch Job Stream
Reply with quote

Code REGION=OM (that's zero em) on the JOB statement and on the EXEC statement for the failing step. That will get you the maximum region allowed for batch job steps on your system.

It will slow down your job, but you could code DCB=BUFNO=2 in the JCL for all of the SEQUENTIAL file DD statements in the job step. That will reduce some of the storage use by QSAM.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


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