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

What is the difference between external and global variables in COBOL?

806


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

619


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

728


What is the Purpose of POINTER Phrase in STRING command in COBOL?

711


How do you reference the following file formats from cobol programs?

691






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.

1998


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

703


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

695


What are the access modes of START statement?

713


Have you used comp and comp-3 in your project? And how?

2003


i want a program using by if, evaluate , string, unstring, perform, occurs?

4039


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5364


What is comp-1 and comp-2?

754


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1910


Explain what you understand by passing by value.

688