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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / lu
before answering this questions, i say "you need to code
PROPERLY, CORRECTLY" ok ....you add S9() comp to S9() comp.
comp-3 with comp-3...ok...
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Answer / abhay
C should be declared as S9(04)
D should be declared as s(05)
| Is This Answer Correct ? | 0 Yes | 0 No |
HOw can I get the negative sign while deduct high value from low value
maximum of how many screens we can open in emulator
In COBOL "BEFORE" advancing is there or not ?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
1.What is the limit of linkage section?
how to submit a jcl by cobol program. clear me with an example.
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
How to retrive the 9th records out of ten records using the cobol program ?
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases
what is meaning by design document? who can repared for this?