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 |
what is sysncpoint?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
I got user abend U4038 while compiling my runjcl.. can anyone help me?
I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??
how you will define variables length in cobol.
how many divisions are there in cobol
what is amode(24), amode(31), rmode(24) and rmode(any)?
can internal sort be applied to sort ksds files?
s9(18) comp-3:: What is the size of memory it takes internally?
how to transfer the file from pc to mainframe??
What will happen if we generate GDG (+2) version without generating (+1) version?