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

What is the utilization of copybook in cobol?

891


What is the difference between PIC 9.99 and 9v99 in COBOL?

987


What is the difference between binary search and sequential search?

856


Mention the guidelines to write a structured cobol program?

837


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2352


How do define dynamic array in cobol.

865


What is the difference between Global and External Variables?

936


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?

5602


Whats the difference between search & search ALL?

5894


What is rmode(24)

905


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

629


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7312


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

870


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

949


In which area will you utilize 88 level items in cobol?

898