WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH &
WHAT IT CONTAIN IN THAT LENGTH
Answers were Sorted based on User's Feedback
Answer / 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 |
how can we fetch 3 records in cobol pgm any coding pls ?
What will happen if we generate GDG +2 version instead of +1 version?
What are the steps you go through while creating a COBOL program executable?
when COMP-3 is preferrable?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?
Explain complete concept of table handling in COBOL with an example?
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
what is the difference between external and global variables?
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
How To move a value to an array using move verb?
How do you reference the fixed block file formats from cobol programs
What is the difference between SEARCH and SEARCH ALL? What is more efficient?