if a pic 9(3) value 354,b pic x(2) value '46' then
a)a>b
2)a<b
3)error
Answer Posted / billyboyo
IBM Cobol will do an alphanumeric comparison because one of
the fields is PICTURE X. "354" will be compared to "45" and
be found to be lower. Answer b) is correct.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are the access modes of START statement?
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)?
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?
Define static linking and dynamic linking.
What is the problem of ordered sequential files access?
What is the LINKAGE SECTION used in COBOL?
what is amode(24), amode(31), rmode(24) and rmode(any)?
How do you reference the following file formats from cobol programs?
) what is the difference between AID and HANDLE AID?
) How do u handle errors in BMS macro?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is the use of intialize verb?
Whats the difference between search & search ALL?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
how can i see junk values in dclgen or in hostvariable of comp ?