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 can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931


What is rmode(any) ?

686


Are you comfortable in cobol or jcl?

643


How can you get the ksds file records into your cobol program?

644


What is the difference between Global and External Variables?

666






Define static linking and dynamic linking.

669


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


Difference between array and sub-script ?

1166


How you can characterize tables in cobol?

718


Which division and paragraphs are mandatory for a COBOL program?

709


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701


) How do u handle errors in BMS macro

1510


What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


Write some characteristics of cobol as means of business language.

619


i need a small 3d program using inline and outline.

1637