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 rmode(any) ?

1324


A table has two indexes defined. Which one will be used by the SEARCH?

1322


What is the local-storage section?

1188


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2433


) what is the difference between AID and HANDLE AID?

2193


When is inspect verb is used in cobol?

1304


What is length is cobol?

1150


What type of SDLC u followed? Why?

2046


What is the usage of comp fields in cobol?

1222


Explain how to differentiate call by context by comparing it to other calls?

1238


What do you understand by psb and acb?

1174


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

1292


Define static linking and dynamic linking.

1262


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1213


What the difference is between continue and next sentence?

1215