how many bytes does s9(7)COMP-3 field occupies?
Answers were Sorted based on User's Feedback
Answer / sekhar
s9(7)COMP-3
s occupius 1/2 bytes so 1/2+1/2(extra)=1 byte
1+7=8comp3
4 bytes
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / vijayamala
s9(7)comp3
n=7 , (n+1)/2 = (7+1)/2 = 4.
4 bytes will be allocated for this numeric data item.
since comp3 is a packed decimal representation, each byte
can hold 2 data items. which means it 4 bytes can occupy 8
items. In which last item is left for sign digit. So
s9(4)comp3 will have 4bytes allocated & can hold 7 data
item and 1 sign digit in it.
| Is This Answer Correct ? | 5 Yes | 1 No |
How do you differentiate between cobol and cobol-ii?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
what is jcl approach for programming?
Are you comfortable in cobol or jcl?
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
What are the differences between OS VS COBOL and VS COBOL II?
Give some examples of command terminators?
File status must be checked both while opening and reading the file or only while reading the file?
what is rediffine clause?in what situation it can use?give me real time example?
Why there is no questions in this column?
How do you define a variable of comp-1 and comp-2?