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
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How to use the same COBOL program in Batch and CICS on lines? explain with an example
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What are the different rules of SORT operation?
Which is not true about evaluate statement
What is the Purpose of Pointer in the string?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Write a program that uses move corresponding.
How do you define a variable of comp-1 and comp-2?
What is a SSRANGE and NOSSRANGE?
What is the usage of comp fields in cobol?