How would the number +1234 be stored if a PIC clause of
PICTUREs9(4) comp-3 were used?
Answer Posted / santosh khot
The comp-3 Variables are called packed decimals the values
internally stored in two digits in single byte and 0.5 byte
stores the Sign ie -or + so for ur Question S9(4) Comp-3
takes 3 bytes of space
1234 will occupy Two bytes and Sign takes 0.5 bytes
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Write a program to enter and display the names of students in a class using the occurs clause.
Give some examples of command terminators?
what happens if parmparameter passes zero bytes to the program
how can i see junk values in dclgen or in hostvariable of comp ?
Define static linking and dynamic linking.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Explain what you understand by passing by value.
What is the Purpose of Pointer in the string?
Are you comfortable in cobol or jcl?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How are the next sentence and continue different from each other?
i need a small 3d program using inline and outline.
example for sub strings ? and refernce modifications whit output pls
What is static and dynamic call in cobol?