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


Please Help Members By Posting Answers For Below Questions

Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2224


Define static linking and dynamic linking.

858


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

939


) how do u code after getting data?

1769


Describe the cobol database components?

875






How you can read the file from bottom?

862


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1068


In COBOL programming, what is PERFORM? What is VARYING?

851


What are the different open modes available in cobol?

924


What is the difference between goback, stop run and exit program in cobol?

1211


What are the pertinent COBOL commands?

2816


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2170


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2979


Write a cobol program making use of the redefine clause.

912


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

1680