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 / ramesh
HI Vish,
We can use 02 level to describe C.
Only Mistake seems to be Wrong Syntax.
Thanks
Rameshkumar.H.K.
Infosys
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How do you reference the following file formats from cobol programs?
Name the divisions, which are available in a cobol program?
What are the pertinent COBOL commands?
What is the difference between goback, stop run and exit program 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.
Can we redefine the field of x(200) to less than 200?
What are the various section in data division and briefly explain them.
How you can read the file from bottom?
How arrays can be defined in COBOL?
What is the usage of comp fields in cobol?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
what are decleratives in cobol?
How to print 10 to 1 if the input have only 10 digit number?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the different open modes available in cobol?