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 will 128 be saved in s9 (3) comp-3
How will 12 be saved in s9 (2) comp

Answers were Sorted based on User's Feedback



How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp..

Answer / sriram

for comp-3 will store data in packed decimal format
s9(3)comp-3
0.5+1.5=2 bytes,
for 128 it will store c128 or f128.
for comp will store data in binary format
s9(2) will occupy 2 bytes
for 12 it will store binary format i.e 12=1100

Is This Answer Correct ?    13 Yes 2 No

How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp..

Answer / kavithachandrashekar

comp-3 is stored as (n+1)/2 where n is number of digits.Since here n is 3 for numeric 128,(3+1)/2=2 bytes.

12 8C here c represents positive(D for negative)

Comp is stored as n/2,where n is number of digits.Since n is 2 for numeric 12,(2)/2=1 byte(1/2 word)
12 is saved as 12.

Is This Answer Correct ?    7 Yes 7 No

How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp..

Answer / manohar reddy .d

n=128 it is a even number thaty (128/2)+1 65 in comp3


in comp s9(12) 8bytes it occupies

Is This Answer Correct ?    2 Yes 28 No

Post New Answer

More COBOL Interview Questions

What is mean by maxcc

7 Answers   Syntel,


01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases

6 Answers   Patni,


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

0 Answers  


how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........

4 Answers   Wipro,


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


How many maximum number of procedures can we write in one COBOL program?

5 Answers  


) How do you access the migrate the data from production region to development region

1 Answers   IBM,


What is CALL statement in COBOL?

4 Answers  


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

0 Answers   HSBC, Quest,


Can JUSTIFIED be used for all the data types?

3 Answers  


i Want All cobol ERROR codes?

4 Answers   HCL, IBM,


Categories