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 |
Write a program to concert an Indexed file into Sequential file?
consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
Define static linking and dynamic linking.
copy 100 records without using ibm utilities
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
How to know whether the module is dynamical or statistical?
what is srange and nosrange pls reply to ths question ?
i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast
What is amode(31)
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible
where will u code file status ?