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


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

688


Difference between array and sub-script ?

1169


What is the Purpose of Pointer in the string?

643


what happens if parmparameter passes zero bytes to the program

1667


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.

1119






What are the various section in data division and briefly explain them.

700


Difference between cobol and cobol-ii?

714


What is the difference between next sentence and continue in cobol programing language?

712


Which mode is used to operate the sequential file?

671


What is the local-storage section?

683


What type of SDLC u followed? Why?

1522


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


How do we get current date from system with century in COBOL?

807


Name some of the examples of COBOl 11?

2688


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773