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 guidelines should be followed to write a structured cobol prgm?

674


How to print 10 to 1 if the input have only 10 digit number?

814


What is report-item in COBOL?

712


How do you define a variable of comp-1 and comp-2?

707


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1932






) how do u code after getting data?

1582


Which division and paragraphs are mandatory for a COBOL program?

712


How to remove 2 duplicate records and copy only one using job control language?

755


Give some examples of command terminators?

760


What is the difference between a binary search and a sequential search what are the pertinent cobol?

737


What is static and dynamic call in cobol?

601


What is the usage of comp fields in cobol?

660


i need a small 3d program using inline and outline.

1640


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

1476


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1876