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 |
9(2).99 how many bytes take? Why . consider as a byte?
What is different between variable length and fixed length?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Difference between file status codes 02 and 22.... since both are for duplicate key detection.
What is perform what is varying?
What compiler option would you use for dynamic linking?
What is rmode(any) ?
How to increase the logical record length of existing PS file?
using redefine can you redefine lower variable size to higher variable size?
what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?