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 |
01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?
What is normalisation?
record length in spool?
How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.
what is the use of keep and pass in disp
Explain how you can characterize tables in cobol?
how to transfer the file from pc to mainframe??
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
how do you reference the ksds vsam file formats from cobol programs
If I want to increase the Limit in GDG. What should I do?
How to increase the logical record length of existing PS file?
1) can we display the index?