From: Luke Skywalker on
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

> 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
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
"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
"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