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

please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1948


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

812


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

619


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8139


What is the problem of ordered sequential files access?

690






State the various causes of s0c1, s0c5 and s0c7.

656


What guidelines should be followed to write a structured cobol prgm?

662


Which mode is used to operate the sequential file?

654


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

734


What is the default value(s) for an initialize and what keyword allows for an override of the default?

686


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5049


what is search and searchall?what is the diffrence between them?give an best example?

5534


Write down the divisions of cobol program?

662


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5355


What are the different data types in cobol?

781