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
Which mode is used to operate the sequential file?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What rules are to be followed while using the corresponding options?
how do you reference the printer file formats from cobol programs
How do you differentiate between cobol and cobol-ii?
how do you reference the fixed unblock file formats from cobol programs
How do we get current date from system with century in COBOL?
what happens if parmparameter passes zero bytes to the program
example for sub strings ? and refernce modifications whit output pls
How do u write test cases?
What is the difference between goback, stop run and exit program in cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Whats the difference between search & search ALL?
What is the local-storage section?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com