i have a variable block which is used in my cobol program
as input file having records of 4080 after compilation
while runing the program im getiing file attribut mismatch
and it is saying tht the record length of the file is 4084
can any one knw the answer how to reslove it ?

Answers were Sorted based on User's Feedback



i have a variable block which is used in my cobol program as input file having records of 4080 aft..

Answer / ravi

For Variable length file(VB) first 4 characters are used to
store the length of each record. So if your record contains
4080 then actual length is 4080 + 4 = 4084.

So to resolve abend --- increase record length to 4084.

Is This Answer Correct ?    7 Yes 0 No

i have a variable block which is used in my cobol program as input file having records of 4080 aft..

Answer / neha

And in addition to Ravi's answer you also have to mention
file as variable while defining the file.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More COBOL Interview Questions

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

0 Answers  


Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.

11 Answers   Deloitte,


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

2 Answers   Cap Gemini,


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


can we write paragraph in area B .....

4 Answers   L&T,






BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  


How do u initialize an array?

2 Answers   CTS,


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,


Describe the cobol database components?

0 Answers  


Name the divisions, which are available in a cobol program?

0 Answers  


What is the difference between CONTINUE & NEXT SENTENCE ?

2 Answers  


Categories