From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Example of ODS and PROC FREQ - SAS Tutorial
From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research
Example of ODS and PROC FREQ
- [Instructor] In this movie, I'm going to show you an example of using the ODS with PROC FREQ. Please see that I've opened your exercise file with this movie, named 410_ODS for PROC FREQ. So in the slides we went over in the last movie, you already saw an example of one of the internal tables for PROC FREQ that we can output using the ODS, and that table was named CrossTabFreqs. Let's say we want to figure out all the internal tables we can choose from, that are available in PROC FREQ, then we could just start by using the ODS without an output statement. See here, I start the ODS trace, I skip the output line, and jump right into my PROC FREQ. Here, we are using the analytic dataset, and we are doing a cross tabs of DIABETE4 and ASTHMMA3. Now, I'll close the ODS. Now, when I run this code, it will look a lot like what happens when you run a normal PROC FREQ with no ODS, but there will be a difference I'll show you.…
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.