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


Please Help Members By Posting Answers For Below Questions

Discuss about changing dataset name in proc.

760


Differentiate between structured cobol programming and object-oriented cobol programming.

667


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


) what is the difference between AID and HANDLE AID?

1636


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710






What is static and dynamic call in cobol?

594


What is the difference between next sentence and continue in cobol programing language?

711


how do you reference the rrds file formats from cobol programs

798


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.

5687


How do define dynamic array in cobol.

671


Whats the difference between search & search ALL?

5264


What are declaratives and what are their uses in cobol?

714


What is link edit in cobol?

772


What the difference is between continue and next sentence?

659


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

421