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

data study;
input Subj : $3.
Group : $1.
Dose : $4.
Weight : $8.
Subgroup;
x= input(Weight,5.1);
datalines;
001 A Low 220 2
002 A High 90 1
003 B Low 193.6 1
004 B High 165 2
005 A Low 123.4 1
;

Why does X get truncated? X shows up as 22 instead of 220,9
instead of 90 and 19.8 instead of 198? This problem doesnt
happen with the values 193.6 and 123.4.

This does not happen if x is read on the 5. informat instead
of the 5.1 informat

Answer Posted / kumaraswamy maduri

Informat 5.1 or 5.2 tell the SAS processor to allocate
specified number of decimals from right to left of the
value and the remaining to the number.
Informat 5. is good if you have one decimal even this fails
when you have more than one decimal.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is character variable converted into numeric variable and vice versa?

1170


How do you add a number to a macro variable? : sas-macro

1006


what are the types of interactive display types? : Sas-bi

1095


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1235


What makes sas stand out to be the best over other data analytics tools?

1058


what is ae onset date n what is RDS

2575


What are the different servers in sas? : sas-grid-administration

1053


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2457


Which command is used to save logs in the external file?

1097


What does the RUN statement do?

1301


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1041


What is the role of administrative users? : sas-grid-administration

1079


explain the proc in sas? : Sas-administrator

1088


Differentiate between format and informat? : sas-grid-administration

1058


What is the use of function Proc summary?

1279