I check this quesion here: https://communities.sas.com/t5/Base-SAS-Programming/Importing-sas7bdat-file/td-p/167889
I want to import this data: myda.sas7bdat . here is my code based on the solution offered by aboved link:
LIBNAME SAS "\\Client\D$\sas"; PROC PRINT DATA= SAS.myda; run;
up to now, it works well, but if I want to modify the dataset, it doesn't work.
DATA myda1; set SAS.myda; run;
So i don't know how to use the dataset with suffix sas7bdat, anybody helps? Thank you.
Post your full code and log.
You put the name of the dataset your trying to use in the SET statement.
It it should look like the following:
Libname input 'path to folder';
data want;
set input.myda1;
run;
Sas7bdat files are SAS datasets. You don't import them.
You refer to the dataset using the libname.dataset_name format.
So assign a libname to the folder where you store the dataset and then refer to it in the format above.
Post your full code and log.
You put the name of the dataset your trying to use in the SET statement.
It it should look like the following:
Libname input 'path to folder';
data want;
set input.myda1;
run;
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.