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
What are the different rules of SORT operation?
Define static linking and dynamic linking.
What is redefines clause in COBOL?
Why did you choose to work with ibm mainframe cobol programming?
What is amode(24)?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the utilization of copybook in cobol?
How many sections are there in data division in COBOL?
Are you comfortable in cobol or jcl?
How do get the result of your program directly on your pc?
What is inspect in cobol ?
What is the difference between Call and a Link?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
what is s000 u4087 error? please give the all error codes in cobol,jcl.