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
Answers were Sorted based on User's Feedback
Answer / 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 |
In INITIALIZE what is Repalcing Word will do
What is the difference between external and global variables in COBOL?
What is the difference between CONTINUE & NEXT SENTENCE ?
Can the OCCURS clause be at the 01 level?
in cobol perform stmt whether it first checks the condition or not
Define cobol?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
how to refer the data field?
how to crack cts interview apps? NOVEMBER 21 2010
Can we use icetool in cobol program?
How can you add a particular field in copybook?
What are declaratives and what are their uses in cobol?