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 type of SDLC u followed? Why?
Can a Search can be done on a table with or without Index?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Define cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What are the various section in data division and briefly explain them.
What is the compute verb? How is it used?
What are the access modes of START statement?
What is a SSRANGE and NOSSRANGE?
What is redefines clause in COBOL?
Difference between array and sub-script ?
What is the difference between goback, stop run and exit program in cobol?
how to access the file from prodution from changeman tool and to submit a file to production
What the difference is between continue and next sentence?