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
What are the cobol coding sheets?
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)?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the Purpose of Pointer in the string?
In COBOL, what is the different between index and subscript?
Write a program to explain size error.
What are declaratives and what are their uses in cobol?
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.
how do you reference the variable unblock file formats from cobol programs
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is redefines clause in COBOL?
What are the different data types in cobol?
How many sections are there in data division in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
Why did you choose to work with ibm mainframe cobol programming?