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 Static,Dynamic linking ?

2 Answers  


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

0 Answers  


Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?

7 Answers  


how to code in cobol while using variable block file?

1 Answers  


How to concatenation one or more string?

4 Answers   Temenos,






I got user abend U4038 while compiling my runjcl.. can anyone help me?

10 Answers   CGI,


how do you reference the esds vsam file formats from cobol programs

0 Answers  


can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)

13 Answers   CTS,


How can I tell if a module is being called DYNAMICALLY or STATICALLY?

3 Answers   CTS,


what is the use of filler in cobol programing?

4 Answers   MAT,


01 A pic 9(100) find record length of it

6 Answers   TCS,


can we use 77 level no for Redefines?if we use give an example?

3 Answers   Mphasis,


Categories