Below is the step-by-step guide on how to import the data files.
Step 1: save and unzip the project_1_sdtm_dm.zip file in your 'myfolders' folder:
Note: you need to save the folder in your 'myfolders' folder only if you are using the SAS University Edition. If you are using SAS 9.4 or SAS EG, you can save the file anywhere on your system where SAS can access.
The folder contains four Excel spreadsheets:
Step 2: Open SAS Studio and run the code below:
Libname CDM '/folders/myfolders/Project_1_SDTM_DM';
PROC IMPORT DATAFILE= "/folders/myfolders/Project_1_SDTM_DM/DEATH.xlsx"
DBMS=XLSX OUT= CDM.DEATH;
After execution, the code above should have imported the DEATH data set. You can find it in the CDM library:
You can use the same code to import the other three data sets.
Did you get the following error message?
ERROR: Physical file does not exist
This message means there is an incorrect directory path in your code.
If you're using SAS Studio, the paths below are incorrect:
Please note that SAS Studio runs on a virtual machine. It doesn't connect directly to your C drive.
Whenever you have a C drive (or any other drive) in your directory path, it is incorrect.
The path above is the correct path. For more information about data import, please visit data set [9-14].