Here's a Proc Print trick for grouped data.
Suppose your data is divided into groups, such as males and females.
You could sort by the grouping variable before printing, like this:
Suppose you want to better emphasize the groups. You could add a BY statement, like this:
OK, but, personally, I prefer a different look.
Here's a trick. Add an ID statement, like this:
I like the above look, but that's just me.
Isn't it great that SAS gives us choices?!
Want to learn more great tips like these? Consider taking a course in our SAS programming learning path.