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 / vinodquestion

I dont know what you need mr. LU. My question is in place of '?' what do you code for that manipulations.. i.e give declarations for c,d and it satisfies both move,add operations.. if it is not possible give me your conclusion...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

907


how do you reference the ksds vsam file formats from cobol programs

633


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

2301


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

651


Name the sections present in data division.

683






how can i see junk values in dclgen or in hostvariable of comp ?

2515


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

869


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1901


what is the difference between COBOL2 AND COBOL390?

2420


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

711


Explain what you understand by passing by value.

662


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

783


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

646


What guidelines should be followed to write a structured cobol prgm?

638


What is the Purpose of POINTER Phrase in STRING command in COBOL?

693