|
Prev: Re Thoughts on teaching OO concepts to COBOL programmers (by razor iruddock@blueyonder.co.uk)
Next: Closing this thread Re: COBOL 3.2 on z/OS reading variable len files
From: Luke Skywalker on 16 Apr 2008 14:44 Hi, I try to read any kind of VB file but I got FS 39 (lrecl mismatch) FD MYFILE RECORDING V BLOCK 0 RECORDS RECORD IS VARYING FROM 1 TO 32756 DEPENDING ON WS-CPT. 01 MREC. 05 FILLER PIC X(01) OCCURS 1 TO 32756 DEPENDING ON WS-CPT. (.....) OPEN MYFILE => File STATUS 39 MYFILE is VB, LRECL 1328, but I do not want to focus on lrecl 1328, it could be any other LRECL less or equal to 32756 Any ideas dears ? Thanks a lot....
From: Michael Mattias on 16 Apr 2008 15:02 > I try to read any kind of VB file but I got FS 39 (lrecl mismatch) > > > FD MYFILE > RECORDING V BLOCK 0 RECORDS > RECORD IS VARYING FROM 1 TO 32756 DEPENDING ON WS-CPT. If the VB file is a "text" file with records delimited by CRLF, it has to be ORGANIZATION IS LINE SEQUENTIAL in COBOL. If the VB file is something else, then I think you may need to engage a professional to look at it..... >"Luke Skywalker" <luke.skywalker(a)tatooine.com> wrote in message >news:025c570a$0$6316 ... why not just "Use The Force, Luke?" -- Michael C. Mattias Tal Systems Inc. Racine WI mmattias(a)talsystems.com
From: William M. Klein on 16 Apr 2008 16:24 What are the DCB attributes of the file? (Say via ISPF 3.2). When you say 32756 are you including the RDW? If so, you shouldn't be. P.S. You don't need RECORDING <mode> V When you code RECORD VARYING IN SIZE you automatically get that. -- Bill Klein wmklein <at> ix.netcom.com "Luke Skywalker" <luke.skywalker(a)tatooine.com> wrote in message news:025c570a$0$6316$c3e8da3(a)news.astraweb.com... > Hi, > > I try to read any kind of VB file but I got FS 39 (lrecl mismatch) > > > FD MYFILE > RECORDING V BLOCK 0 RECORDS > RECORD IS VARYING FROM 1 TO 32756 DEPENDING ON WS-CPT. > > 01 MREC. > 05 FILLER PIC X(01) OCCURS 1 TO 32756 DEPENDING ON WS-CPT. > > > > (.....) > > > > OPEN MYFILE => File STATUS 39 > > > MYFILE is VB, LRECL 1328, but I do not want to focus on lrecl 1328, it could > be any other LRECL less or equal to 32756 > > > > Any ideas dears ? > > Thanks a lot.... > >
From: William M. Klein on 16 Apr 2008 16:26 "line sequential" isn't relevant for this (IBM mainframe) problem. "VB" means that it has DCB=RECFM=VB where "vb" is "variable and blocked" in IBM-ese -- Bill Klein wmklein <at> ix.netcom.com "Michael Mattias" <mmattias(a)talsystems.com> wrote in message news:w3sNj.1818$pS4.509(a)newssvr13.news.prodigy.net... > >> I try to read any kind of VB file but I got FS 39 (lrecl mismatch) >> >> >> FD MYFILE >> RECORDING V BLOCK 0 RECORDS >> RECORD IS VARYING FROM 1 TO 32756 DEPENDING ON WS-CPT. > > > If the VB file is a "text" file with records delimited by CRLF, it has to be > ORGANIZATION IS LINE SEQUENTIAL in COBOL. > > If the VB file is something else, then I think you may need to engage a > professional to look at it..... > >>"Luke Skywalker" <luke.skywalker(a)tatooine.com> wrote in message >>news:025c570a$0$6316 > > .. why not just "Use The Force, Luke?" > > -- > Michael C. Mattias > Tal Systems Inc. > Racine WI > mmattias(a)talsystems.com > >
From: Michael Mattias on 16 Apr 2008 19:04
"William M. Klein" <wmklein(a)nospam.netcom.com> wrote in message news:HhtNj.169056$K96.77064(a)fe03.news.easynews.com... > "line sequential" isn't relevant for this (IBM mainframe) problem. "VB" > means that it has > DCB=RECFM=VB > where "vb" is "variable and blocked" in IBM-ese Oh, I guess I should read the subject. "z/OS" is kind of a giveaway, huh? (I was helping someone else recently where 'VB' meant something else. ) Well, at least The Force is still an option for Mr. Skywalker...... (C'mon, I get to do something silly every eight-ten years or so, don't I?) -- Michael C. Mattias Tal Systems Inc. Racine WI mmattias(a)talsystems.com |