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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

700


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2051


What are the access modes of START statement?

716


What is the compute verb? How is it used?

653


How to print 10 to 1 if the input have only 10 digit number?

808






A table has two indexes defined. Which one will be used by the SEARCH?

752


What the difference is between continue and next sentence?

651


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

670


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

654


What is perform what is varying?

701


What are the pertinent COBOL

2041


Write a program to explain size error.

669


how do you reference the fixed unblock file formats from cobol programs

702


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

660


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1798