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

whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  


WHAT IS SOC3?HOW IT CAN BE RESOLVED?

1 Answers  


what will happen if pass values more than 100 using PARM parameter?

1 Answers  


consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

10 Answers   TCS,


file status 00 is checked after opening the file or reading the file

4 Answers   John Deere,


I have a table with 3 dimensions like this : 01 ws-table 04 ws-page occurs 3 08 ws-column occurs 2. 12 ws-record occurs 20 pic x(40). How to code with PERFORM varying with 3 dimension...I forgot..

2 Answers   EDS,


For rewrite, why is it mandatory that file needs to be opened?

0 Answers  


What is file status 39 ?

10 Answers   JPMorgan Chase,


what is Reentrancy and Quasi-reentrancy?

1 Answers  


What is the difference between a binary search and a sequential search?

10 Answers  


Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


) what is the difference between AID and HANDLE AID?

0 Answers   IBM,


Categories