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 is inspect in cobol ?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is perform what is varying?
What is link edit in cobol?
How do you differentiate between cobol and cobol-ii?
How do u write test cases?
What is the difference between PIC 9.99 and 9v99 in COBOL?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
Name the sections present in data division.
Differentiate between structured cobol programming and object-oriented cobol programming.
Which Search verb is equivalent to PERFORM…VARYING?
Write some characteristics of cobol as means of business language.
Explain how you can characterize tables in cobol?
how do you reference the printer file formats from cobol programs