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

HI THIS IS ANIL. HOW TO PASS A RECORDS OF A FILE(PS OR PDS) TO AN ARRAY?

2 Answers  


Why would you use find and get rather than to obtain?

0 Answers  


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


i WANT ALL ERROR codes IN CICS and DB2

2 Answers  


What is Static and Dynamic linking ?

3 Answers  






Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  


hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........

1 Answers  


What is XDC ?

3 Answers   Cap Gemini, IBM,


how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)

6 Answers  


What is normalisation?

2 Answers   IBM,


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

5 Answers   Accenture, Patni,


can we redefine 77 level item is it possible

4 Answers   HCL,


Categories