comp-3 field occupy?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
it will occupy maximum s9(18) comp-3 i.e. 10 bytes
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ajith
for pic s9(n) comp-3,
it will occupy (n+1)/2 bytes
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / ganesh
It will store INT ((n/2)+1) bytes for PIC S9(n) COMP_3;
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / swamy
Comp-3 fields occupy (n+1)/2 spaces , 1 being the sign
eg: Pic S9(7) COMP-3. Byte size = (7+1)/2 = 4
Pic S9(5)V99 COMP-3. Byte size = (5+2+1)/2 = 4
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / krishna
COMP-3 is hexa-decimal reprasention .the best at lower
boundaries.
If it have size is even it takes (n/2) bytes.
If it have size is odd it takes (n+1/2) bytes.
| Is This Answer Correct ? | 0 Yes | 3 No |
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
What are the differences between OS VS COBOL and VS COBOL II?
Explain about different table spaces.
Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM PERFORM PARA-X UNTIL W-NUM > 9. ------ PARA-X ADD 1 TO W-NUM How many times PARA-X is executed ?
What is the difference between write & move in COBOL?
What divisions, sections and paragraphs are mandatory for a COBOL program?
can we use 77 level no for Redefines?if we use give an example?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
what are the isolation levels and where we use it in the db2 program
how do you reference the ksds vsam file formats from cobol programs
What is the difference between comp and comp-3 usage?
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?