View previous topic :: View next topic |
Author |
Message |
Magesh_J Intermediate

Joined: 21 Jun 2014 Posts: 259 Topics: 54
|
Posted: Mon Apr 06, 2015 10:21 am Post subject: Spool Limitation |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Apr 06, 2015 10:39 am Post subject: Re: Spool Limitation |
|
|
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 |
|
 |
Magesh_J Intermediate

Joined: 21 Jun 2014 Posts: 259 Topics: 54
|
Posted: Mon Apr 06, 2015 11:12 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Apr 06, 2015 11:38 am Post subject: |
|
|
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 |
|
 |
Magesh_J Intermediate

Joined: 21 Jun 2014 Posts: 259 Topics: 54
|
Posted: Mon Apr 06, 2015 11:59 am Post subject: |
|
|
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 |
|
 |
|
|