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
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
how do you reference the fixed unblock file formats from cobol programs
In COBOL programming, what is PERFORM? What is VARYING?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
how can i see junk values in dclgen or in hostvariable of comp ?
What is the difference between Global and External Variables?
How are the next sentence and continue different from each other?
HOw can I get the negative sign while deduct high value from low value
What the difference is between continue and next sentence?
what are decleratives in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Explain how to differentiate call by context by comparing it to other calls?
How do define dynamic array in cobol.
How can you get the ksds file records into your cobol program?
How to remove 2 duplicate records and copy only one using job control language?