- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am confused about this question, why does the title statement t for the last PROC PRINT step cancel all the higher TITLEn statements? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That's just the way it was coded. From SAS's documentation:
- This statement suppresses a title on line n and all lines after it: (Where n is a number between 1 and 10)
titlen;
A TITLE statement for a given line cancels the previous TITLE statement for that line and for all lines with larger n numbers. TITLE with no number assumes TITLE1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That's the design, and it's a good one. Wouldn't it be annoying if you had to cancel all of the titles by specifying separate statements each time you wanted to change them? Yes, it could have been designed other ways, but that is how it has worked when I first learned SAS '79.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You already have your answer, but I want to add this:
Bookmark this link in all your browsers:
SAS® 9.4 and SAS® Viya® 3.4 Programming Documentation
so you can make full use of Maxim 1 when it comes to SAS programming.
The documentation for your particular question is found here: