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;
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.