JFCBDQTY is the contents of the JCL directory space parameter, not that of
the PDS to which it refers. All of the JFCB is like that.

You could always open the dataset RECFM=U and read until you got to the end
of the directory. I've forgotten at this moment how to tell the end of the
directory but I'm sure someone else will chime in (or you could experiment -
probably something to do with an entry of all x'FF' or something like that).

You would think it would be in the DSCB-1 but I don't see it there.

DESERV GET_ALL tells you the number of directory entries.

Charles



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Schuster
Sent: Friday, July 14, 2006 12:04 PM
To: [email protected]
Subject: directory blocks-determine how many


Hello: Given an existing PDS on a disk device, how can you programatically
(from assembler) determine how many directory blocks are allocated to it?

I thought RDJFCB would work but that does not have the JFCBDQTY field filled
in.

----------------------------------------------------------------------
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

Reply via email to