I have data something which has negative values and 0 with decimals and i want 2 decimals for all non zero values.
I tried format=6.2 in proc report but it also makes 0 as 0.00. is there any way to skip 0 while using it in define in proc report?
HI @noda6003 Please try using
A custom format ought to work
proc format;
value custf 0=0 other=[6.2];
run;
Then in PROC REPORT
define var / format=custf.;
HI @noda6003 Please try using
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.