You could trying getting the FMT1DSCB for the data set and looking at the organization.
Thomas David Rivers <[EMAIL PROTECTED]> Sent by: IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU> 04/24/2006 03:18 PM Please respond to IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU> To IBM-MAIN@BAMA.UA.EDU cc Subject Re: Reading Variable record with bad BDW/RDW? Hi John, Yeah... I know the directory portion isn't VB. But, the program doesn't know that.. it "thinks" it's simply been given the name of a sequential VB file that it wants to process.... So - it stumbles blindly into the directory - and *whamo* - gets this "bad" data. So - I suppose - what's the best way to ask "Hey - is this at all a reasonable thing to be trying a VB-read on?" - Thanks - - Dave Rivers - McKown, John wrote: > > The directory of a PDS is not VB. It is > RECFM=F,LRECL=256,BLKSIZE=256,KEYLEN=8. You can ignore the key, if you > want. You must read all 256 bytes and "deblock" the "logical records" > yourself. They are not compatable with RECFM=VB, but they are "close". > "Close" only counts in horse shoes and nuclear weapons. > > I have code, which I got from somewhere, that I can share. I also sure > that there is some available on http://cbttape.org somewhere, but I > don't know where. > > -- > John McKown > Senior Systems Programmer > HealthMarkets -- [EMAIL PROTECTED] Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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