Hi All,
Some jobs in one of our application fails every now and then due to lack of space in few datasets.
Is there a way I can get a notification in case the space in these datasets goes beyond a particular threshold value(say 80%).
I have been told that the mainframe storage team can get such notification. I am looking at something that I from the application support team can develop and use to alert me in case the space in a dataset is almost full without having to depend on the mainframe storage team.
Thanks in advance.
Regards,
Ashok Kumar
Alert if dataset space goes beyond threshold
-
- Posts: 12
- Joined: Wed Mar 27, 2013 7:59 pm
- Skillset: cobol,db2,vsam,jcl
- Referer: online forums
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Alert if dataset space goes beyond threshold
Talk to your site storage group team about how to get the alerts you need. Developing your own solution would be wasteful of resources, and there is no reason to duplicate the work your storage group has already done.
-
- Posts: 12
- Joined: Wed Mar 27, 2013 7:59 pm
- Skillset: cobol,db2,vsam,jcl
- Referer: online forums
Re: Alert if dataset space goes beyond threshold
Hi Robert,
Thanks for the response. I checked with them and they informed me that they are using a tool provided by a 3rd party vendor for such notification. They also have a limitation on the number of dataset that we can add to such alert from each application.
Is there anything you are aware of that can help me develop such utility?
Thanks for the response. I checked with them and they informed me that they are using a tool provided by a 3rd party vendor for such notification. They also have a limitation on the number of dataset that we can add to such alert from each application.
Is there anything you are aware of that can help me develop such utility?
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Alert if dataset space goes beyond threshold
if the failure happens in mission critical application
there is no reason for Your organization to use for Your application
the facilities provided by the third party tool.
do not expect too much help when You are facing issues due to Your organization <political> choices
there is no reason for Your organization to use for Your application
the facilities provided by the third party tool.
do not expect too much help when You are facing issues due to Your organization <political> choices

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: Alert if dataset space goes beyond threshold
It is not a good idea to develop your own system tools. If you still think you need to do this, you might be able to use DCOLLECT (if you have authority at your site to run DCOLLECT) to pull out allocation and used space for each data set on disk.
-
- Posts: 12
- Joined: Wed Mar 27, 2013 7:59 pm
- Skillset: cobol,db2,vsam,jcl
- Referer: online forums
Re: Alert if dataset space goes beyond threshold
Thanks Robert.
I tried using DCOLLECT but as suspected I do not have the authority to use it.
I tried using another utility IEHLIST which I found in some forums. The JCL I used for this is as shown below -
//LISTVTOC EXEC PGM=IEHLIST
//SYSPRINT DD SYSOUT=*
//DISK DD UNIT=3390,VOL=SER=KTSO12,DISP=SHR
//SYSIN DD *
LISTVTOC FORMAT,VOL=3390=KTSO12
/*
For each dataset in the volume KTS012 this JCL did display some information and one of the lines for this was as shown below -
"ON THE ABOVE DATA SET,THERE ARE 0 EMPTY CYLINDER(S) PLUS 11 EMPTY TRACK(S)."
Can the above statement help us in determining if the dataset is going out of space?
For eg: if the above line said 0 empty cylinders and 0 empty tracks then does this indicate this dataset may go out of space in near future?
I tried using DCOLLECT but as suspected I do not have the authority to use it.
I tried using another utility IEHLIST which I found in some forums. The JCL I used for this is as shown below -
//LISTVTOC EXEC PGM=IEHLIST
//SYSPRINT DD SYSOUT=*
//DISK DD UNIT=3390,VOL=SER=KTSO12,DISP=SHR
//SYSIN DD *
LISTVTOC FORMAT,VOL=3390=KTSO12
/*
For each dataset in the volume KTS012 this JCL did display some information and one of the lines for this was as shown below -
"ON THE ABOVE DATA SET,THERE ARE 0 EMPTY CYLINDER(S) PLUS 11 EMPTY TRACK(S)."
Can the above statement help us in determining if the dataset is going out of space?
For eg: if the above line said 0 empty cylinders and 0 empty tracks then does this indicate this dataset may go out of space in near future?
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Alert if dataset space goes beyond threshold
That all depends on the size of the dataset and the amount of change it has. A 1 track dataset which has 11 tracks spare is not going to have any trouble unless you are expecting a gazillion records for it next time. Likewise a 1000 cyl dataset will be quite happy with 11 spare tracks if it never changes.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Alert if dataset space goes beyond threshold
Hello,
Also keep in mind that VSAM files and physical database datasets will show "full" but mostly are not. The entire space is allocated and initialized, so it all appears "used".
Several of my clients have programmer-friendly datasets that contains dcollect data and smf data. Ask your storage management people if such is available on your system.
Also keep in mind that VSAM files and physical database datasets will show "full" but mostly are not. The entire space is allocated and initialized, so it all appears "used".
Several of my clients have programmer-friendly datasets that contains dcollect data and smf data. Ask your storage management people if such is available on your system.
Hope this helps,
d.sch.
d.sch.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: Alert if dataset space goes beyond threshold
Collecting allocated space and used space for sequential and "regular" partitioned data sets from the VTOC is not difficult. You are most of the way there using IEHLIST LISTVTOC FORMAT, though, as you have already determined, interpreting the output is not so easy.
As both NicC and Mr. Scherrer have mentioned, this analysis leaves many missing elements.
As both NicC and Mr. Scherrer have mentioned, this analysis leaves many missing elements.
- VSAM
- Data bases
- Data sets migrated by HSM or ISV provided utilitiies (CA-Disk, for example) that perform similar functions.
- PDS-E data sets
- Data sets created during job execution.
- Tape data sets
-
- Posts: 12
- Joined: Wed Mar 27, 2013 7:59 pm
- Skillset: cobol,db2,vsam,jcl
- Referer: online forums
Re: Alert if dataset space goes beyond threshold
Thanks Steve,Dick,NicC,Robert and Enrico for your responses. The information you all have provided is very useful. I will try to develop something out of this and if I am able to get it right I will share it with this forum.
Thanks again.
Thanks again.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
remove leading special chars, space & trailing special char
by srihemz » Tue Jun 30, 2020 8:06 pm » in DFSORT/ICETOOL/ICEGENER - 2
- 3864
-
by sergeyken
View the latest post
Wed Jul 01, 2020 4:55 pm
-
-
- 12
- 3903
-
by RalphEagle
View the latest post
Fri Jul 30, 2021 1:00 pm
-
- 2
- 2746
-
by willy jensen
View the latest post
Sat Mar 04, 2023 12:41 pm
-
- 3
- 2693
-
by sergeyken
View the latest post
Sat Nov 16, 2024 11:05 pm
-
-
SMTPNOTE - can a font be specified for a dataset?
by Proddish2348 » Sat Jul 01, 2023 5:31 am » in Operating Systems - 0
- 4242
-
by Proddish2348
View the latest post
Sat Jul 01, 2023 5:31 am
-