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

What is the LINKAGE SECTION used in COBOL?

900


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1125


Name some of the examples of COBOl 11?

2691


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

691


What are 77 levels used for?

663






What is the compute verb? How is it used?

673


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

728


how do you reference the rrds file formats from cobol programs

807


Write a cobol program making use of the redefine clause.

743


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

942


What is length is cobol?

656


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?

714


How do you define a variable of comp-1 and comp-2?

711


Define static linking and dynamic linking.

675


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2667