if a pic 9(3) value 354,b pic x(2) value '46' then
a)a>b
2)a<b
3)error

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which area will you utilize 88 level items in cobol?

704


What is redefines clause in COBOL?

837


What is inspect in cobol ?

791


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

631


What are all the divisions of a COBOL program?

656






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?

1794


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1946


For rewrite, why is it mandatory that file needs to be opened?

613


Explain what you understand by passing by value.

685


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1219


how to move the records from file to array table. give with code example

2207


What are different data types in cobol?

676


Which division and paragraphs are mandatory for a COBOL program?

701


Define static linking and dynamic linking.

651


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1918