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 |
What is the difference between SEARCH and SEARCH ALL?
why 02 level number can't be use as a separate level number like 01 or 77 ?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is perform what is varying?
) How do u handle errors in BMS macro?
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
I know my query will return more than one row but I don't want cursor what should I do?
in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?
what is the difference between perform varying and perform until
What is level 66 used for ?
How do you reference the fixed block file formats from cobol programs
I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..