if a pic 9(3) value 354,b pic x(2) value '46' then
a)a>b
2)a<b
3)error
Answers were Sorted based on User's Feedback
Answer / piyush mani
i think it will create an error bcoz we can't compare numeric variable to non-numeric variable.
| Is This Answer Correct ? | 8 Yes | 4 No |
Answer / 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 |
Answer / seema dawlekar
As picture clause for variable b is x(2), which means that
it can accept both numeric and characters of length 2, but
the care we should take here is that we should enclose them
in the single quotes, therefore to my expectation option b
is write.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raguveer sunendhu thollitu
I dont know..
Depends on the collating sequence.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / saidinesh
I accept that u can enter the value of numeric as well as
alpha numeric. but we can not give the numeric values in
cot's. please check it once...
| Is This Answer Correct ? | 0 Yes | 1 No |
What are the rules of the move verb?
What are the various section in data division and briefly explain them.
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
What is an in-line perform ?
If I want to increase the Limit in GDG. What should I do?
which one is the best of com and com-3.using of real time ?
Explain complete concept of table handling in COBOL with an example?
Can anyone please give the example of Inline Perform.
why 02 level number can't be use as a separate level number like 01 or 77 ?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.