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 |
Can anybody give me example of subscript and index
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
What is the difference between comp and comp-3?
How do you reference the following file formats from cobol programs?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........
how to display comp3 variables reply soon ?
How do u write test cases?
can we use reference modification an arry.
Without using move verb how to move one variable to another.
if we have a 10 steps how to override the 4th step in jcl?