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


Please Help Members By Posting Answers For Below Questions

Discuss about changing dataset name in proc.

751


Write the code to count the sum of n natural numbers.

695


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

629


what is amode(24), amode(31), rmode(24) and rmode(any)?

680


What is the use of intialize verb?

734






What are declaratives and what are their uses in cobol?

692


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

760


What is the difference between perform … with test after and perform … with test before?

859


What is the local-storage section?

666


Can we redefine the field of x(200) to less than 200?

803


Define cobol?

848


What are the different open modes available in cobol?

711


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1768


what is search and searchall?what is the diffrence between them?give an best example?

5519


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

687