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 |
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?
hie everyone.i just completed my b.tech in electronics and joined mainframes course.am i doing right course for my better future?please help me with your suggestions.ill be very thankful to you guys.
What are options have been removed in COBOL 11?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How do define dynamic array in cobol.
i want a program using by if, evaluate , string, unstring, perform, occurs?
when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible
What are the different data types in cobol?
How to define a array dynamically.....
I had 100 records and i want to execute last three records by using cobol programming?what will be coding?
What R 2 of the common forms of the EVALUATE STATEMENT ?
what happens if we wont give timestamp in precompilation process ?