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 / asmara
nothing is wrong in the IF statement
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
i need a small 3d program using inline and outline.
What is a report item?
Mention the guidelines to write a structured cobol program?
What is report-item in COBOL?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
what happens if parmparameter passes zero bytes to the program
Describe the cobol database components?
how do you reference the variable block file formats from cobol programs
In COBOL programming, what is PERFORM? What is VARYING?
How do you define a variable of comp-1 and comp-2?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
example for sub strings ? and refernce modifications whit output pls
how do you reference the printer file formats from cobol programs
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
Write the code to count the sum of n natural numbers.