MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Spool Limitation

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Mon Apr 06, 2015 10:21 am    Post subject: Spool Limitation Reply with quote

Hi,

Is there a way to Limit the spool being displayed in Mainframe.

Example : If any job writes more than 5 million of records, job has to be cancelled automatically.

Is it possible, Please advise.

Thanks
Magesh
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Apr 06, 2015 10:39 am    Post subject: Re: Spool Limitation Reply with quote

Magesh_J wrote:
Hi,

Is there a way to Limit the spool being displayed in Mainframe.


Magesh_J,

Yes you can use the OUTLIM parameter to limit the number of logical records in the sysout data set defined by the DD statement

Magesh_J wrote:

Example : If any job writes more than 5 million of records, job has to be cancelled automatically.


It depends on SYSOUT limit exit routine. If the installation supplies an installation-written routine, the routine can determine whether to terminate the job or increase the limit. If the installation does not supply a routine, the system terminates the job.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Mon Apr 06, 2015 11:12 am    Post subject: Reply with quote

Hi Kolusu,

Kolusu wrote:

It depends on SYSOUT limit exit routine. If the installation supplies an installation-written routine, the routine can determine whether to terminate the job or increase the limit. If the installation does not supply a routine, the system terminates the job.


In my situation, one of the user written 212 millions of records in spool, the job was not failed. All the users could not log on, My id also in hung status, could not navigate anything until system programmer/ops killed/purged the spool.

SYSOUT limit is an existing routine which is a part of ZOS ?

Regards,
Magesh
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Apr 06, 2015 11:38 am    Post subject: Reply with quote

Magesh_J wrote:
SYSOUT limit is an existing routine which is a part of ZOS ?


You can implement JES2 installation Exit 9 to make decisions when output exceeds output limits. Your shop should implement the exit routine. There are samples. Module HASX09B in SYS1.SHASSAMP contains a sample of Exit 9. Check this link for a detailed explanation of the exit.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HAS2C1A5/22.0

JES2 will not invoke Exit 9 for jobs that exceed the OUTLIM specification. You should implement SMF exit IEFUSO - SYSOUT Limit Excession to process any jobs that exceed the OUTLIM specification. See z/OS MVS Installation Exits for additional information on SMF exit IEFUSO.

Check this link for a detailed explanation of the IEFUSO exit

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2E4C0/2.31?

btw if you are an application programmer you wouldn't have access to make changes to any of the above mentioned unless you are bringing up your own driver with z/OS.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Magesh_J
Intermediate


Joined: 21 Jun 2014
Posts: 259
Topics: 54

PostPosted: Mon Apr 06, 2015 11:59 am    Post subject: Reply with quote

Kolusu,

Thanks, Useful information.. I dont have access to SMF parmlib. the mainframe we are working is more than 15 years old, wondering why these rules were not framed yet.

I thought we need some special utility to do so, thanks again

Regards,
Magesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group