Would that be possible to assign a format to the value by using Symput (or similarly in PROC SQL).
Here is an example:
PROC SQL noprint;
select min(EN) into :minEN;
from test;
QUIT;
The minimum value of EN is 10.12345. The above program works perfectly to get the exact value but can I assign a format like COMMA8.2 to change it to 10.12?
With the DATA step approach and SYMPUT, you would use the PUT function in the SYMPUT call to generate a "formatted" value. And with the PROC SQL approach, the FORMAT= keyword is added to the SELECT to generate a formatted value.