comp-3 field occupy?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
it will occupy maximum s9(18) comp-3 i.e. 10 bytes
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ajith
for pic s9(n) comp-3,
it will occupy (n+1)/2 bytes
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / ganesh
It will store INT ((n/2)+1) bytes for PIC S9(n) COMP_3;
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / swamy
Comp-3 fields occupy (n+1)/2 spaces , 1 being the sign
eg: Pic S9(7) COMP-3. Byte size = (7+1)/2 = 4
Pic S9(5)V99 COMP-3. Byte size = (5+2+1)/2 = 4
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / krishna
COMP-3 is hexa-decimal reprasention .the best at lower
boundaries.
If it have size is even it takes (n/2) bytes.
If it have size is odd it takes (n+1/2) bytes.
| Is This Answer Correct ? | 0 Yes | 3 No |
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
What are subroutines ? and how do we pass data to the sub routines?
explain sorting techniques in cobol program?
I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?
What is the difference between static call & Dynamic call?
Why would you use find and get rather than to obtain?
How many maximum number of procedures can we write in one COBOL program?
I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.
Did anybody attend the walkin of TCS on 31st July in Gurgaon for any technology,If u have completed 3 round i.e till the HR round,have u received the Offer letter yet? Please let me know.Thanks.
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
how to display the dataset information?
How arrays can be defined in COBOL?