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
Can we change the password using ALTER? anyone tried and changed?
What is the difference between Global and External Variables?
What are the different types of condition in cobol and write their forms.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
) How do u handle errors in BMS macro?
What is the difference between PIC 9.99 and 9v99 in COBOL?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Are you comfortable in cobol or jcl?
What is the utilization of copybook in cobol?
What are declaratives and what are their uses in cobol?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What do you understand by psb and acb?
What are the access modes of START statement?
How do u write test cases?