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(15) occupy in comp1 comp2 and comp3 ?

Answer Posted / shiva

COMP1-IT OCCUPIES 4 BYTES TO STORE UP TO 18 CHARACTERS
COMP2-IT OCCUPIES 8 BYTE TO STORE UP TO 18 CHARACTERS
COMP3-IT OCCUPIES HALF BYTE FOR EACH CHARACTER AND HALF BYTE
FOR SIGN...FOR ODD DATA LENGTH SO IT OCCUPIES
(15/2=7.5)+(1/2)=7.5+0.5=8 BYTES.

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1167


What is the utilization of copybook in cobol?

1185


How do get the result of your program directly on your pc?

2337


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

1281


What is the difference between next sentence and continue in cobol programing language?

1220


What is the difference between Call and a Link?

1192


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1103


Name the sections present in data division.

1238


Have you used comp and comp-3 in your project? And how?

2479


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

1196


What is the difference between comp and comp-3 usage?

1197


What is the difference between Global and External Variables?

1377


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9877


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

1115


What rules are to be followed while using the corresponding options?

1060