Rather than do BSAM reads I think it is better to make use of the CVAF macros. These make use of the VTOC Index to assist processing. This will present you the data set names in alphabetical order.
If you are processing each DSN within the VTOC, you may need to make direct reads of records due to the pointers from one DSCB to another. CVAFSEQ reads records sequentially. CVAFDIR reads records directly. CVAFDSM maps the VTOC and gives you various statistics. Lennie Dymoke-Bradshaw | Security Lead | RSM Partners Ltd Web: www.rsmpartners.com 'Dance like no one is watching. Encrypt like everyone is.' -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of [email protected] Sent: 13 June 2019 17:40 To: [email protected] Subject: Re: [IBM-MAIN] VTOC reading Are used to do it in programs a while ago. First do a dynamic allocate Specifying a DS name of 44 characters of hex 04 for 44 characters and specify the valves there that you want. There is a mapping macro that describes each record that you can use. Do an open a read or a get as appropriate. Then your normal close. I can find an example late tonight if you care. Sent from my iPhone > On Jun 13, 2019, at 11:44, Bill Ogden <[email protected]> wrote: > > My old memory is failing in too many areas. Long ago, I seem to > recall, there was an easy way to read a VTOC with simple JCL using a "magic" > DSNAME ----- obviously not 040404... for JCL, but some other name. Is > my memory correct? What is the DSNAME? While playing with google I > cannot find anything, but I might be using the wrong search words. > > Bill Ogden > > > ---------------------------------------------------------------------- > 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
