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

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

3 Answers   IBM, Wipro,


study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level

4 Answers   TCS,


without performing any operations on a file how can i know whether it contains data or not

2 Answers  


How do you differentiate between cobol and cobol-ii?

0 Answers  


What are differences between Static Call and Dynamic Call?

10 Answers   IBM, KBC, Keane India Ltd, Verizon,


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers   Arigo Infotech,


how to change picture class of copy book variable inside program?

2 Answers  


what is the difference between start and startbr?

2 Answers  


i have a requrement in A as viswa!@#$%&^**reddy i need to move viswareddy in B without junk values pls say how to do ths reply fast

4 Answers   L&T,


01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.

15 Answers   ACS,


What are the rules of the move verb?

0 Answers  


What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

4 Answers   IBM,


Categories