ODS EXCEL FILE='/Reports/Daily_delta1.xlsx'
options (sheet_name='CRM' embedded_titles='yes');
title "CRM Indicators By Portfolio on the Daily Delta Files from Equifax";
proc sql;
create table indicators as
select *
FROM RESULTS;
QUIT;
ods excel close;
please help
A CREATE TABLE statement in SQL does exactly that, it creates a dataset, but it does not produce output for sending to ODS. If you want output from SQL, omit the CREATE TABLE and just use a SELECT:
proc sql;
select *
from results;
quit;
A better way to simply send a table to the ODS is PROC PRINT:
proc print data=result noobs;
run;
If you want the observation numbers printed, omit the NOOBS option.
A CREATE TABLE statement in SQL does exactly that, it creates a dataset, but it does not produce output for sending to ODS. If you want output from SQL, omit the CREATE TABLE and just use a SELECT:
proc sql;
select *
from results;
quit;
A better way to simply send a table to the ODS is PROC PRINT:
proc print data=result noobs;
run;
If you want the observation numbers printed, omit the NOOBS option.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.