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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is report-item in COBOL?

1200


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1210


How do you reference the fixed block file formats from cobol programs

1286


how do you reference the variable block file formats from cobol programs

1310


explain sorting techniques in cobol program?

1245


What is the Purpose of Pointer in the string?

1125


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1441


What are 77 levels used for?

1150


what is the use of outrecord?

2272


What is the problem of ordered sequential files access?

1207


Name the sections present in data division.

1310


What do you understand by psb and acb?

1181


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1394


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1185


How do u write test cases?

2111