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

please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

0 Answers   EDS,


How to increase the logical record length of existing PS file?

7 Answers  


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

0 Answers  


1) can we display the index?

3 Answers   ADP, IBM,


In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.

1 Answers   CSC,






u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?

2 Answers   IBM,


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?

1 Answers  


1.What is the limit of linkage section?

4 Answers  


Name the divisions in a COBOL program ?

7 Answers  


can we use reference modification an arry.

1 Answers  


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


Categories