On 12/4/2018 12:42 PM, Kirk Wolf wrote:
<snip>
Are there examples in CBT of code that do similar analysis of DASD datasets? Even something that does a good job at deducing SPACE=(unit,(pri,sec)) is not as simple as one might think.
For standalone code, a RDJFCB will get you a list of the volsers a given DSN is allocated on. You can read the VTOC for selected volsers to get the SPACE allocation information for a given non-VSAM data set from the F1/F2/F3 or F1/F8/F9 DSCBs. You do not need to be APF authorized to read a VTOC.
You could also use CVAFDIR, CVAFFILT or CVAFSEQ but they are slower than doing it yourself with BSAM or EXCP reads of the VTOC.
Mike Shaw MVS/QuickRef Support Group Chicago-Soft, Ltd. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
