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
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 |
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 |
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
How is sign stored in a COMP field ?
What does the IS NUMERIC clause establish ?
When is a scope terminator mandatory?
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
What is the mode in which you will OPEN a file for writing?
explain sorting techniques in cobol program?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
using redefine can you redefine lower variable size to higher variable size?
what is meant by binary search?
Difference between ps, esds