Alert if dataset space goes beyond threshold



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Alert if dataset space goes beyond threshold

Postby ashokkumar_rn » Thu Jun 20, 2013 5:49 pm

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
ashokkumar_rn
 
Posts: 12
Joined: Wed Mar 27, 2013 7:59 pm
Has thanked: 8 times
Been thanked: 0 time

Re: Alert if dataset space goes beyond threshold

 

Re: Alert if dataset space goes beyond threshold

Postby Robert Sample » Thu Jun 20, 2013 6:31 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Alert if dataset space goes beyond threshold

Postby ashokkumar_rn » Fri Jun 21, 2013 4:11 pm

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?
ashokkumar_rn
 
Posts: 12
Joined: Wed Mar 27, 2013 7:59 pm
Has thanked: 8 times
Been thanked: 0 time

Re: Alert if dataset space goes beyond threshold

Postby enrico-sorichetti » Fri Jun 21, 2013 5:43 pm

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 :mrgreen:
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-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Alert if dataset space goes beyond threshold

Postby Robert Sample » Fri Jun 21, 2013 6:20 pm

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.

These users thanked the author Robert Sample for the post:
ashokkumar_rn (Tue Jun 25, 2013 3:10 pm)
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Alert if dataset space goes beyond threshold

Postby ashokkumar_rn » Mon Jun 24, 2013 1:16 pm

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?
ashokkumar_rn
 
Posts: 12
Joined: Wed Mar 27, 2013 7:59 pm
Has thanked: 8 times
Been thanked: 0 time

Re: Alert if dataset space goes beyond threshold

Postby NicC » Mon Jun 24, 2013 5:28 pm

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

These users thanked the author NicC for the post:
ashokkumar_rn (Mon Jun 24, 2013 6:04 pm)
NicC
Global moderator
 
Posts: 2692
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Alert if dataset space goes beyond threshold

Postby dick scherrer » Mon Jun 24, 2013 7:21 pm

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.
Hope this helps,
d.sch.

These users thanked the author dick scherrer for the post:
ashokkumar_rn (Tue Jun 25, 2013 3:10 pm)
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Alert if dataset space goes beyond threshold

Postby steve-myers » Mon Jun 24, 2013 10:12 pm

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.
  • 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
Even when allocated and used space is available, determining if there is a potential problem can be difficult.

These users thanked the author steve-myers for the post:
ashokkumar_rn (Tue Jun 25, 2013 3:10 pm)
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Alert if dataset space goes beyond threshold

Postby ashokkumar_rn » Tue Jun 25, 2013 3:10 pm

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.
ashokkumar_rn
 
Posts: 12
Joined: Wed Mar 27, 2013 7:59 pm
Has thanked: 8 times
Been thanked: 0 time


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post