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
how do you reference the fixed unblock file formats from cobol programs
What is a scope terminator give example?
What are the different open modes available in cobol?
Can we redefine the field of x(200) to less than 200?
How do we get current date from system with century in COBOL?
What is rmode(any) ?
Explain about different table spaces.
Name the sections present in data division.
Which is not true about evaluate statement
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What are different data types in cobol?
how to move the records from file to array table. give with code example
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are the different types of condition in cobol and write their forms.