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


Please Help Members By Posting Answers For Below Questions

What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

791


Name the sections present in data division.

705


How do you reference the fixed block file formats from cobol programs

713


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

432


What rules are to be followed while using the corresponding options?

645






What rules are followed by the search verb.

644


What is a scope terminator give example?

661


What are the pertinent COBOL

2054


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1007


) How do u handle errors in BMS macro

1514


What is the utilization of copybook in cobol?

666


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10676


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1529


What do you understand by psb and acb?

674


example for sub strings ? and refernce modifications whit output pls

1853