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 / ts nithiyanandan

answer is a
IF B Numeric (correct syntax)
IF (B Numeric) (incorrect syntax)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 77 levels used for?

840


What the difference is between continue and next sentence?

862


Explain how to differentiate call by context by comparing it to other calls?

895


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

829


What is the difference between comp and comp-3?

886


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1731


What is the difference between next sentence and continue in cobol programing language?

941


Write down the divisions of cobol program?

836


What is report-item in COBOL?

887


i want a program using by if, evaluate , string, unstring, perform, occurs?

4334


Differentiate between structured cobol programming and object-oriented cobol programming.

828


What is the LINKAGE SECTION used in COBOL?

1178


What is the usage of comp fields in cobol?

865


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2002


How do you get the data to code the BMS macro?

1685