I am importing data from SPSS to SAS and creating several new variables within the SAS dataset that I wish to save to a permanent file that can be accessed later. I don't want to have to run the code to set up my new variables for analysis every single time I open SAS. I have been using the following statements, but it does not seem to work. Suggestions are much appreciated.
You are almost there, you need to set the imported file(SPSS) into the data step procedure.
libname survey 'C:\location-of-file';
data survey.apr30data;
set importedspssfilehere;
IF-THEN-ELSE statements;
run;
proc print data=survey.apr30data;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!