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 a indexed file what is procedure for read the records from 12 to 18. please give the code example
What is the difference between a DYNAMIC and STATIC call in COBOL?
where will u code file status ?
How to print 10 to 1 if the input have only 10 digit number?
subscript and index r not coded in u r application program what will happen?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?
what is the difference between Plan & package?
What is SSRANGE, NOSSRANGE ?
How do define dynamic array in cobol.
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $