s9(18) comp-3:: What is the size of memory it takes
internally?
Answers were Sorted based on User's Feedback
Answer / shaan
Well since comp-3 items are packed decimal items,2 digits
will be stored in each byte and the last nibble(4 bits) will
contain the sign.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / vinodquestion
Thanks shaan, And what is for sigh decimal numbers
representation for same comp 3? i.e internal representation
of signed decimal number
| Is This Answer Correct ? | 0 Yes | 1 No |
I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?
What is the different between index and subscript?
What is the Purpose of POINTER Phrase in STRING command
Why IBM?
What are the steps you go through while creating a COBOL program executable?
How can we find out wether to declare the data items like Integer, Char,Comp? If comp types how can we decide wether it is Comp and Comp3.How it is? Please Explain... Cheers.
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?
can we use COPY statement in w-s section? how?
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
which is better either static call or dynamic call? and why?
ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????
How is sign stored in Packed Decimal fields and Zoned Decimal fields?