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 |
When is a scope terminator mandatory?
hw to create 3 dimensional array & hw to access it?
sample code for read a 2nd record from last in flatfile how can do?
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
If I want to increase the Limit in GDG. What should I do?
where did you see the information regarding abend codes in jcl?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
. How do we cast a variable in COBOL
1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?
What is the size of s9(19)comp3? explain
What is the Purpose of POINTER Phrase in STRING command in COBOL?
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?