Hello everyone. Can you help with is problem.
Write SAS code to:
after downloading the data files.
Please help. I was not able to find a tutorial for this. A step by step is appreciated.
The desired result is in the attached file.
You cannot merge these files. They have nothing in common and there's no basis or logic that would be correct to merge them. I suspect you misunderstood the instructions somewhere.
If you download the data (sas data set, somedata.sas7bdat) and place it in the myfolders location you created, you can access the data as follows:
*set path to permanent library;
libname myData '/folders/myfolders/';
*show summary to match Word doc;
proc means data=myData.somedata;
run;
Importing or accessing files
Merge:
@naeemahb1 wrote:
Hello everyone. Can you help with is problem.
Write SAS code to:
- Read a file called: SOMEDATA.SAS7BDAT &
- Import an Excel data file (CSV) called “CARSMPG.CSV”
after downloading the data files.
Please help. I was not able to find a tutorial for this. A step by step is appreciated.
The desired result is in the attached file.
BTW, CSV files are text files that are in a format that spreadsheet programs can read. They are not "Excel files". Searching for reading Excel files will make things much more complicated than needed.
You cannot merge these files. They have nothing in common and there's no basis or logic that would be correct to merge them. I suspect you misunderstood the instructions somewhere.
If you download the data (sas data set, somedata.sas7bdat) and place it in the myfolders location you created, you can access the data as follows:
*set path to permanent library;
libname myData '/folders/myfolders/';
*show summary to match Word doc;
proc means data=myData.somedata;
run;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.