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 are the functions like c or c++ in cobol?
What type of SDLC u followed? Why?
what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?
1.What is the default print format in cobol?
Explain what you understand by passing by value.
can i use multiple when statements in search & search all ? justify ur answer?
What is the difference between comp and comp-3 usage?
What is the Purpose of Pointer in the string?
what is linkcard in cobol?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
In the JCL, how do you define the files referred to in a subroutine ?
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference