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
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
how to move the records from file to array table. give with code example
Write a program to explain size error.
How do you define a variable of comp-1 and comp-2?
How do u write test cases?
What is the difference between Global and External Variables?
how to convert the recors form vsam file to db2 table tru file aid
How to remove 2 duplicate records and copy only one using job control language?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Can we change the password using ALTER? anyone tried and changed?
How do you get the data to code the BMS macro?
What is a report item?
Write a program that uses move corresponding.