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

how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

2143


What is rmode(any) ?

899


What rules are to be followed while using the corresponding options?

841


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

870


Write the code to count the sum of n natural numbers.

936


State the various causes of s0c1, s0c5 and s0c7.

850


Why occurs cannot be used in 01 level in COBOL?

920


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2127


What is the difference between Global and External Variables?

935


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2609


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

910


How do you reference the fixed block file formats from cobol programs

916


How do define dynamic array in cobol.

864


How do we get current date from system with century in COBOL?

1066


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1034