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