Hi,
I want to tranpose a few numeric variables and I want the transposed variable to have formatted character values (instead of the default unformatted numeric value).
Any idea how to do this?
Thanks.
VD
To get SAS to convert numeric variables to character (with associated formats) the VAR list must include at least one character variable. It can be a dummy variable if you like.
var numericvar1 ... numericvarN DUMMYcharacterVar;
To get SAS to convert numeric variables to character (with associated formats) the VAR list must include at least one character variable. It can be a dummy variable if you like.
var numericvar1 ... numericvarN DUMMYcharacterVar;
Thanks data_null_!
The dummy variable helped.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.