WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH &
WHAT IT CONTAIN IN THAT LENGTH

Answer Posted / narinder

In JCL, LRECL NEEDS TO BE 4 EXTRA THAN THE COBOL FILE LENGTH in case of Variable Block File. Since length of each record varies in the file, the first 4 bytes contains the length of the corresponding record.

Please correct me if I am wrong.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

636


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1796


what happens if parmparameter passes zero bytes to the program

1650


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

703


What is the difference between comp and comp-3 usage?

669






write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

693


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

667


how do you define single dimensional array and multidimensional array in your cobol?

663


Name the sections present in data division.

693


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

634


Can we change the password using ALTER? anyone tried and changed?

1535


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1919


What is a scope terminator give example?

650


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10543


Write down the divisions of cobol program?

661