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

if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?

3 Answers  


Why did you choose to work with ibm mainframe cobol programming?

0 Answers  


Name the sections present in data division.

0 Answers  


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

3 Answers   TCS,






WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?

6 Answers   ABC, IBM, Mphasis, Wipro,


why we are using picture clause in the cobol programs?

2 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


Write some characteristics of cobol as means of business language.

0 Answers  


what is a zoned decimal data type and how it will be stored?

2 Answers   IBM,


What is 66 level number and where it is used in real time by software developers?

2 Answers   ITC Indian Tobacco Company, TCS,


Categories