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 is link edit in cobol?
What are different data types in cobol?
How can you get the ksds file records into your cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the different rules of SORT operation?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Can we redefine the field of x(200) to less than 200?
explain sorting techniques in cobol program?
Why would you use find and get rather than to obtain?
how can i see junk values in dclgen or in hostvariable of comp ?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the difference between Call and a Link?
how to access the file from prodution from changeman tool and to submit a file to production
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?