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 |
What is the difference between comp and comp-3 usage?
Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
can we write paragraph in area B .....
BY seeing a program how can we say that it is static call or dynamic call
Why did you choose to work with ibm mainframe cobol programming?
How do u initialize an array?
what is srange and nosrange pls reply to ths question ?
Describe the cobol database components?
Name the divisions, which are available in a cobol program?
What is the difference between CONTINUE & NEXT SENTENCE ?