what if any ,is the syntex error in the following piece of code
01 B PIC A(7)
02 C PIC 9(4)
........
IF(B NUMERIC)
ADD 10 TO C
a.the condition in the if statement is wrong
b.noting is wrong
c.because C is initialised.ADD 10 TO C is wrong
d.both B and C shoud have same size.
Answer Posted / ramesh
HI Vish,
We can use 02 level to describe C.
Only Mistake seems to be Wrong Syntax.
Thanks
Rameshkumar.H.K.
Infosys
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the different open modes available in cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
For rewrite, why is it mandatory that file needs to be opened?
What are the cobol coding sheets?
What is comp-1 and comp-2?
What are the different data types in cobol?
Write a cobol program making use of the redefine clause.
What is static and dynamic call in cobol?
How do you define a variable of comp-1 and comp-2?
What is perform what is varying?
What rules are to be followed while using the corresponding options?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How do you reference the fixed block file formats from cobol programs
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?