- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 08-26-2019 05:10 AM
(1649 views)
Data ex;
Set sashelp.class;
A=put(age,6.);
B=put(age,best6.);
Run;
What is difference between A and B variable.
Different between 6. And best6.
Set sashelp.class;
A=put(age,6.);
B=put(age,best6.);
Run;
What is difference between A and B variable.
Different between 6. And best6.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Probably better exemplified with a non-integer value
data _null_;
a=123.456;
put a= 6. /// a= best6.;
run;
With the Best6. Format, SAS chooses the 'best' notation inside an output field with a width of 6 to hold both numbers and delimiters.