Dynamically obtaining allocated space characteristics
I’ve been digging for a couple of days now trying to find out how I can dynamically retrieve the allocated space of a known dataset. Can anyone give me even a whiff of where to look? Dave Q -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Dynamically obtaining allocated space characteristics
Thanks so far ... I want to run in a batch Assembler program. Possibly provide a DSN as input and return information as close to as possible that is returned from ISPF's Dataset Information screen. I had been looking at DSCB and came to the same conclusion about the primary space. I can total the tracks used through the extent list to get the space used and get the secondary space requested, just not the primary requested. I don't believe I could always find the SMF record. I refuse to admit that this is not kept handy somewhere. ISPF's "Dataset Information" has it, why can't I. I do not have any 3rd party software. Dave Quinn. -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of John Kington Sent: Wednesday, November 15, 2006 10:26 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Dynamically obtaining allocated space characteristics You can tell the secondary allocation amount from the DSCB but the primary is not kept in the DSCB for nonvsam datasets. Only the size of the first extent is kept. If you have the SMF type 15 record, a portion of the JFCB is imbedded in the record. Somewhere around offset 220 is the primary amount in three byte binary followed by one byte binary for space type and then a three byte binary field with the secondary amount. This would not help if the dataset is never opened. In that case, the amount of space allocated would be the primary amount and you can see the secondary amount in the DSCB. I have CA-Allocate (VAM) available to me. If you have that product or a similar product, you should be able to look for the program, ddname, jobname or whatever and generate a wto message with the primary amount, secondary amount and space allocation type. This would be the easiest and surest method. Regards, John -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: Dynamically obtaining allocated space characteristics
Thank you for your help Charles & all. I believe I am now able to calculate/generate most of the same information for a dataset that is available in ispf which is the bulk of my current project. Dave -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Charles Mills Sent: Thursday, November 16, 2006 10:25 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Dynamically obtaining allocated space characteristics It occurs to me that the conclusion of my note should read "CSI will return the former. The DSCBs will let you compute the latter, and also return the TRK and the 2 part of the original allocation." Charles -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Charles Mills Sent: Wednesday, November 15, 2006 4:25 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Dynamically obtaining allocated space characteristics Specifically, it's in DFSMS Managing Catalogs. Does the OP want to know the space requested for the dataset, or the space used by a dataset? E.g., do you want to be able to determine that the dataset was allocated SPACE=(TRK,(5,2)) or that the dataset now occupies 9 tracks? CSI will return the former. The DSCBs will let you compute the latter. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.5/533 - Release Date: 11/13/2006 -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html