comp-3 field occupy?

Answers were Sorted based on User's Feedback



comp-3 field occupy?..

Answer / anil prajapati

it will occupy maximum s9(18) comp-3 i.e. 10 bytes

Is This Answer Correct ?    6 Yes 0 No

comp-3 field occupy?..

Answer / ajith

for pic s9(n) comp-3,

it will occupy (n+1)/2 bytes

Is This Answer Correct ?    5 Yes 2 No

comp-3 field occupy?..

Answer / ganesh

It will store INT ((n/2)+1) bytes for PIC S9(n) COMP_3;

Is This Answer Correct ?    3 Yes 1 No

comp-3 field occupy?..

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

comp-3 field occupy?..

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

Post New Answer

More COBOL Interview Questions

I want ALL ERROR codes in VSAM

3 Answers   American Express, TCS,


how we rectify soc4 and soc7 error in project(need real time answer)? please reply

3 Answers   HCL, Wipro,


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


how many bytes does s9(7)COMP-3 field occupies?

6 Answers   ADP,


can we use go to statement inline-perform?

7 Answers   IBM,






How to display the index.(displacement from an array)

4 Answers   IBM,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.

7 Answers   CGI, TCS,


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


Name the divisions, which are available in a cobol program?

0 Answers  


what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

0 Answers  


Categories