a pic s9(4) comp
b pic s9(4) comp-3
c ????????????????
d ????????????????
move a to c
add a+B giving d.
what is ur declaration for c,d?
Answer Posted / mithlesh
since A is the comp field it takes 2 bytes space and B is
the comp-3 field it takes 3 bytes .
Now for the the declaration C and D they must be declaraed
into s9(4) and S9(5) pic caluse.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Discuss about changing dataset name in proc.
Differentiate between structured cobol programming and object-oriented cobol programming.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
) what is the difference between AID and HANDLE AID?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is static and dynamic call in cobol?
What is the difference between next sentence and continue in cobol programing language?
how do you reference the rrds file formats from cobol programs
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How do define dynamic array in cobol.
Whats the difference between search & search ALL?
What are declaratives and what are their uses in cobol?
What is link edit in cobol?
What the difference is between continue and next sentence?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?