/* Create dim table report for google sheet */
proc sql;
create table DXCLASS as
select
* put(..xyz)
from
xyz
where
DIAGNOSIS_ID
;
quit;
I have created a dimension table and i have got the results in a table .I want to copy the table to an excel.How to copy my results of the table from sas to an excel,
Edit: via @Reeza - to modify the subject line to be more descriptive.
The term for this is exporting data.
You can use PROC EXPORT or a LIBNAME statement. This was asked recently here:
@lg2 wrote:
/* Create dim table report for google sheet */
proc sql;
create table DXCLASS as
select
* put(..xyz)
from
xyz
where
DIAGNOSIS_ID
;
quit;
I have created a dimension table and i have got the results in a table .I want to copy the table to an excel.How to copy my results of the table from sas to an excel,
Additionally, In case if your are using SAS Enterprise Guide then you can send your data to excel without any coding required.
@SuryaKiran EG, SAS Studio, and Base all have that option, but it’s not saved in your code or as a step in your process so I usually never recommend it, or use it. Having the file path to knowing where the output is and no manual steps is the easiest solution.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.