WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS
ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR LRECL OF FIXED
ONE AS 80 AND 2ND RECORD AS 132. WHAT WE NEED TO DECLEAR
LRECL FOR THOSE 2 FILES IN JCL?

Answers were Sorted based on User's Feedback



WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR..

Answer / narayan

For Fixed block LRECL=8
and for Variable block LRECL=136 (132+4)

Is This Answer Correct ?    21 Yes 5 No

WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR..

Answer / jagan

Narayan - A small correction LRECL for fixed - 80 and LRECL
for Variable block records is 132+4 = 136 .

Is This Answer Correct ?    11 Yes 0 No

WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR..

Answer / nag(igate)

i think , for variable block we add only 2 bytes extra not
4 bytes

Is This Answer Correct ?    0 Yes 10 No

WE HAVE 2 FILES IN COBOL. ONE IS FIXED LENGTH RECORDS ANOTHER ONE IS VARIABLE LENGTH. IF I DECLEAR..

Answer / guest

80 and 132

Is This Answer Correct ?    0 Yes 12 No

Post New Answer

More COBOL Interview Questions

What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

4 Answers   IBM,


How can you declare the file ?

1 Answers   Wipro,


State the various causes of s0c1, s0c5 and s0c7.

0 Answers  


which one is better among static call and dynamic call?

3 Answers  


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

0 Answers  






how to convert the recors form vsam file to db2 table tru file aid

0 Answers   TCS,


how you will define variables length in cobol.

3 Answers   Temenos,


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

2 Answers   IBM, Steria,


what r the types of perform statement

4 Answers  


Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY 'MAIN-PARA' PERFORM SECTION-A. STOP RUN. SECTION-A. PARA-A1. DISPLAY 'SECTION A PARA A1'. PARA-A2. DISPLAY 'SECTION A PARA A2'.

4 Answers  


The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

3 Answers   TCS,


How are the next sentence and continue different from each other?

0 Answers  


Categories