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


Please Help Members By Posting Answers For Below Questions

What are the different open modes available in cobol?

935


what is amode(24), amode(31), rmode(24) and rmode(any)?

889


For rewrite, why is it mandatory that file needs to be opened?

834


What are the cobol coding sheets?

864


What is comp-1 and comp-2?

936


What are the different data types in cobol?

1040


Write a cobol program making use of the redefine clause.

921


What is static and dynamic call in cobol?

783


How do you define a variable of comp-1 and comp-2?

912


What is perform what is varying?

914


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

829


What is the difference between PIC 9.99 and 9v99 in COBOL?

972


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2227


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

911


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

862