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 is a scope terminator give example?
how do you define single dimensional array and multidimensional array in your cobol?
How arrays can be defined in COBOL?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
When is inspect verb is used in cobol?
How you can read the file from bottom?
Why occurs cannot be used in 01 level in COBOL?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What are different data types in cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what are decleratives in cobol?
Discuss about changing dataset name in proc.
How do you reference the fixed block file formats from cobol programs
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.