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

when COMP-3 is preferrable?

Answer Posted / kiran

Hi friends Both are correct and you can make use of them as
your reference.
Packed Decimal representation. Two digits are stored in
each byte. Last nibble is for
sign. (F for unsigned positive, C for signed positive and D
for signed negative)
Formula for Bytes: Integer ((n/2) + 1)) => n is number of
9s.

if you need more than 18 decimal digits, you must use COMP-
3 (or DISPLAY) as COMP variables cannot exceed 18 digits
while COMP-3 can be up to 31 digits.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to explain size error.

1199


How to know whether the module is dynamical or statistical?

1142


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3263


What are the different rules of SORT operation?

1143


Explain the configuration section of a cobol program with examples of syntax.

1200


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2276


Write down the divisions of cobol program?

1258


State the various causes of s0c1, s0c5 and s0c7.

1084


Why did you choose to work with ibm mainframe cobol programming?

1107


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

1187


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1349


What is the Purpose of Pointer in the string?

1081


What is comp-1 and comp-2?

1230


Give some examples of command terminators?

1261


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1173