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 do you reference the variable block file formats from cobol programs
Difference between array and sub-script ?
What is the Purpose of Pointer in the string?
what happens if parmparameter passes zero bytes to the program
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What are the various section in data division and briefly explain them.
Difference between cobol and cobol-ii?
What is the difference between next sentence and continue in cobol programing language?
Which mode is used to operate the sequential file?
What is the local-storage section?
What type of SDLC u followed? Why?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
How do we get current date from system with century in COBOL?
Name some of the examples of COBOl 11?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com