consider the following two IF statements:
IF X AND NOT Y MOVE A TO B
IF Z=1 OR 9 MOVE A TO B
select one of the following data divusion entries which
gives identical
results for both the above IF statements
a.01 Z PIC 9
88 X VALUE 1.9
88 Y VALUE 0.2 THRU 8
b.01 Z PIC 9
88 X VALUE 0.2 THRU 8
Y VALUE 1.9
c.01 Z PIC 9
88 X VALUE 1.9
88 NOT-Y VALUE 0.2 THRU 1.9
d.none of yhe above

Answer Posted / ram g [mindt tree]

z should be initialized else it will consider as spaces and
pgm trying to store numeric will result in soc7 abend.
set command should used to fix the value for z.
can say..answer is d.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the cobol coding sheets?

655


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

618


What is an in line perform? When would you use it? Anything else you wish to say about it.

632


What is the Purpose of Pointer in the string?

632


In COBOL, what is the different between index and subscript?

747






Write a program to explain size error.

665


What are declaratives and what are their uses in cobol?

693


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2043


how do you reference the variable unblock file formats from cobol programs

731


What is the difference between PIC 9.99 and 9v99 in COBOL?

721


What is redefines clause in COBOL?

835


What are the different data types in cobol?

775


How many sections are there in data division in COBOL?

667


A table has two indexes defined. Which one will be used by the SEARCH?

740


Why did you choose to work with ibm mainframe cobol programming?

619