WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH &
WHAT IT CONTAIN IN THAT LENGTH
Answers were Sorted based on User's Feedback
Answer / mainframe.rahulz
First thing is we can see this kind of differece only in VB
files not in fixed block files.
LRECL of VB file will contain the maximum record length of
a file + 4 bytes RDW(Record Descriptor Word) field which
gives the length of the record as the file contains
variable record lengths.
Example : if we have EMP-FILE VB file which contains 80
THRU 100 CHARECTERS
So the LRECL of this file is going to be 100+4 which is 104
bytes.
Please do let me know in case of any comments/queries.
| Is This Answer Correct ? | 18 Yes | 3 No |
What is Control Break processing ?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
db2 variable decimal(15,2) what is the equalent size of cobol variable
what is a load module ?
wht is packed decimal in cobol
what is S04E error in jcl?
11 Answers IBM, L&T,
Which division and paragraphs are mandatory for a COBOL program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Explain about different table spaces.
Can JUSTIFIED be used for all the data types?
can we redefine 77 level item is it possible
I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?