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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: