WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH &
WHAT IT CONTAIN IN THAT LENGTH
Answer Posted / 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 |
Post New Answer View All Answers
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is perform what is varying?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Difference between cobol and cobol-ii?
What is the difference between external and global variables in COBOL?
What is the Purpose of Pointer in the string?
Write a program to explain size error.
What guidelines should be followed to write a structured cobol prgm?
Name the divisions, which are available in a cobol program?
What is static and dynamic call in cobol?
What is the local-storage section?
explain sorting techniques in cobol program?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Discuss about changing dataset name in proc.