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 |
wht happens if we dnt give scope terminator ?
plz,could any one tell me? what about EBCDIC in cobol?briefly?
I know my query will return more than one row but I don't want cursor what should I do?
Under which scenario you would go for a static call as opposed to dynamic call?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
File status must be checked both while opening and reading the file or only while reading the file?
What is the Purpose of Pointer in the string?
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
Write the syntax of a two dimensional array?
We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)