Re: COBOL 3.2 on z/OS reading variable len files
- From: Robert <no@xxxxxx>
- Date: Thu, 17 Apr 2008 01:18:19 -0500
On Wed, 16 Apr 2008 20:44:04 +0200, "Luke Skywalker" <luke.skywalker@xxxxxxxxxxxx> wrote:
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....
If lrecl in the FCB is zero, z/OS will get it from JCL or the DCB. CALL another Cobol
program USING the FD name. It will pass a pointer to the FCB. In the called program,
change lrecl to zero before opening the file.
.
- References:
- COBOL 3.2 on z/OS reading variable len files
- From: Luke Skywalker
- COBOL 3.2 on z/OS reading variable len files
- Prev by Date: Re: Interesting take on Paradigms (OO vs Procedural)
- Next by Date: Re: COBOL 3.2 on z/OS reading variable len files
- Previous by thread: Re: COBOL 3.2 on z/OS reading variable len files
- Next by thread: Closing this thread Re: COBOL 3.2 on z/OS reading variable len files
- Index(es):
Relevant Pages
|