How would the number +1234 be stored if a PIC clause of
PICTUREs9(4) comp-3 were used?
Answer Posted / suputhru
9(4) comp-3 takes 3 byets
each digit takes half byte.
-- -- -- 3bytes
numeric alignment is right to left <-----
first sign will store in half byte right. right.
c
-- -- --
then next 4 will store.
4c
-- -- -- like that
01 23 4c
-- -- -- will store.
Fonda is sign will store right most half byte.
-SK.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the difference between perform … with test after and perform … with test before?
Whats the difference between search & search ALL?
What are the different rules of SORT operation?
What is comp-1 and comp-2?
Discuss about changing dataset name in proc.
how do you reference the variable unblock file formats from cobol programs
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Can a Search can be done on a table with or without Index?
How do you reference the following file formats from cobol programs?
What is a SSRANGE and NOSSRANGE?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What are the rules of the move verb?
how do you reference the fixed unblock file formats from cobol programs
What is amode(31)