Hello,
An error message is shown in the log window. How to fix it?
%let dira=%str(Pathway);
filename KC "&dira.\Cost_KC.xlsx";
%macro ttt(site,tab);
proc import datafile=&site. out=&site._&tab. dbms=excel replace; sheet="&tab."; run;
%mend ttt;
%ttt(KC,OPT_Data_Request);
31 %ttt(KC,OPT_Data_Request);
ERROR: File _IMEX_.'OPT_Data_Request$'n.DATA does not exist.
ERROR: Import unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.24 seconds
cpu time 0.15 seconds
Please do not show ERRORs detached from the code that produced them. Whenever you get an ERROR in the log, SHOW US the ENTIRE log for this macro or PROC or DATA step. When the error is in a macro, please run the command options mprint; before your macro and then run the macro again. Please copy the log as text and paste it into the window that appears when you click on the </> icon
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 25. 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.