From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Reading in SAS XPT file - SAS Tutorial
From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research
Reading in SAS XPT file
- [Instructor] Hi, everyone. Here we are in sas. If you look in your exercise files for this movie, you'll see this code named 100_Read in XPT BRFSS. Go ahead and put that in your code directory, then open it and you'll see what I see. Only, I like to see my libraries in a list. Here let me click on the Explorer to get the right menu. Then I'll click up here to get the Libraries in a list. Much better. Okay, let's look at the code we have here. Here is the normal Libname statement mapping the alias R to the data directory I'm using for this course. This is the code that is copy pasted at the top of all your sas code for this course. But you only have to run once per session. Here is the XPT code I was talking about. Notice I'm naming the alias for the XPT file we are reading in XPTfile. And here see that XPORT command, making this a special kind of Libname for XPT files. Notice this path maps directly to the actual XPT file, not just a directory. And also you'll notice there is the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.