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 is the difference between structured cobol programming and object alternativelyiented cobol programming?
what are decleratives in cobol?
Write down the divisions of cobol program?
Explain the configuration section of a cobol program with examples of syntax.
) what is the difference between AID and HANDLE AID?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is redefines clause in COBOL?
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 a report item?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is the difference between Global and External Variables?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Have you used comp and comp-3 in your project? And how?
) how do u code after getting data?
What is the difference between Call and a Link?