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...


wht is packed decimal in cobol

Answers were Sorted based on User's Feedback



wht is packed decimal in cobol..

Answer / billyboyo

Packed decimal is IBM's method to allow calculation
directly in base-10.

A DISPLAY numeric field might be PIC S9(7).

If you were to try to add 1 to this, the compiler would
convert, in its own work area, this field to a "packed
decimal" field and generate an AP (Add Packed) to do the
addition, then it would convert the field back to DISPLAY
and the correct value would be in your PIC S9(7) field.
Notice that if you had started off with a COMP-3 (packed
decimal) PIC S9(7) you avoid doing two conversions (from
display to packed and from packed to display).


If you have 1234567 in your display field, it looks like
this in HEX "F1F2F3F4F5F6F7". In comp-3/packed decimal it
looks like this in HEX "1234567C", where the C is the sign
(C is positive, D is negative, and F is unsigned).

Is This Answer Correct ?    0 Yes 0 No

wht is packed decimal in cobol..

Answer / naagju

Packed decimal is nothing but COMP3..

which occupies half byte for a character n half byte for sign.

Ex.01 name pic x(10) value 'sivaNaagju'

which occupies only 5 bytes.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More COBOL Interview Questions

What does the IS NUMERIC clause establish ?

2 Answers  


How to increase the logical record length of existing PS file?

7 Answers  


example for sub strings ? and refernce modifications whit output pls

0 Answers   College School Exams Tests, IBM,


I want ALL jcl ERROR cods

1 Answers  


What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?

1 Answers   Fidelity,


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,


Where the Plan is located in CICS-DB2

2 Answers   IBM,


why we are using set in searchall?

4 Answers   IBM,


What are the different forms of EVALUATE statement?

2 Answers   IBM, Micro Labs,


what is MSGLEVEL?

1 Answers   IBM,


What is inspect in cobol ?

0 Answers   Infosys,


Categories