Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / sdexcellent@yahoo.co.in

4 bytes.

Is This Answer Correct ?    29 Yes 0 No

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

Answer / kiran

it uses (n+1)/2 formula. s0 (7+1)/2 =4 bytes.

Is This Answer Correct ?    23 Yes 2 No

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

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

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

Answer / kavya

int(n/2)+1 here n=7 ,so 4 bytes will take

Is This Answer Correct ?    6 Yes 0 No

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

Answer / bhaskar r

4byets

Is This Answer Correct ?    5 Yes 1 No

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

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

Post New Answer

More COBOL Interview Questions

perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


What is the point of the REPLACING option of a copy statement?

3 Answers  


what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?

2 Answers   BirlaSoft,


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

0 Answers  


Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


how would you resolve sb37 and SE37?

2 Answers   Hewitt,


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

6 Answers   ABC, IBM, Mphasis, Wipro,


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

0 Answers  


In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?

3 Answers  


Why would you use find and get rather than to obtain?

0 Answers  


Can we use goto statement in inline_perform ?

5 Answers   IBM,


Categories