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
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How do define dynamic array in cobol.
Define static linking and dynamic linking.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What rules are to be followed while using the corresponding options?
how do you reference the rrds file formats from cobol programs
How do you get the data to code the BMS macro?
What are the pertinent COBOL commands?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
HOw can I get the negative sign while deduct high value from low value
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Which is not true about evaluate statement
Why occurs cannot be used in 01 level in COBOL?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc