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
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Name the sections present in data division.
How do you reference the fixed block file formats from cobol programs
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What rules are to be followed while using the corresponding options?
What rules are followed by the search verb.
What is a scope terminator give example?
What are the pertinent COBOL
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
) How do u handle errors in BMS macro
What is the utilization of copybook in cobol?
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 ......
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What do you understand by psb and acb?
example for sub strings ? and refernce modifications whit output pls