I am adding this to code that is already using the DSCB chain for all of the volumes for a dataset. Getting information from these to allocate a "LIKE" dataset is the problem - there seem more than a few complexities and pitfalls.
I am really just looking for an example of something that interprets the DSCBs to glean this information to see how it is all put together. I won't be running in ISPF, TSO, or REXX, so examples of using LISTDSI, or DSINFO are not really useful. It's probably not too hard to write something that sort of replicates what LISTDSI or ISPF DSINFO does and then works from there, but there are lots of little pitfalls. If anyone knows of CBT code that works on a similar problem at this level, please let me know. Especially if it is EAV aware. Thanks, On Tue, Dec 4, 2018 at 2:41 PM Mike Shaw <[email protected]> wrote: > 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 > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
