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 |
1.What is the default print format in cobol?
in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......
What is "Call by content" and "call by reference"?
) what is the difference between AID and HANDLE AID?
how can u pass the values into db2 values from cobol ?
With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?
how do u link sub pgm to main pgm ?
How we copy a program from production region to development region.What is the process & syntax ?
how do you reference the ksds vsam file formats from cobol programs
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.
plz any one tell clearly the justify right clause?
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