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
What is rmode(24)
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Write a program to explain size error.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
what is search and searchall?what is the diffrence between them?give an best example?
Can we redefine the field of x(200) to less than 200?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are 77 levels used for?
Define cobol?
what is the use of outrecord?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between comp and comp-3 usage?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
What are the different types of condition in cobol and write their forms.