BookmarkSubscribeRSS Feed
Tom
Super User Tom
Super User

I just noticed that SAS will except 0 as the TITLE or FOOTNOTE number. 

title0;
footnote0;

The effect seems similar to setting TITLE1 or FOOTNOTE1 to blank.  

 

Has anyone seen this before?  I could not find it referenced in the documentation.

3 REPLIES 3
ghosh
Barite | Level 11
It's the same as SAS accepting Title and Footnote without any digits.
ballardw
Super User

Interesting, suppresses display of the titles but does not remove them from the Sashelp.vtitle view that contains the text of assigned titles the way a Title; or Title1; statement does.

And even more entertaining, if you change a title2 that will display, sort of like it is playing the role of Title1 but the title1 doesn't show.

 

title "some title";
title2 "other title";
title0 ;

proc print data=sashelp.class (obs=3);
run;

ods text='Titles table';
proc print data=sashelp.vtitle;
run;

title2 'Titles table';
proc print data=sashelp.vtitle;
run;

I'm sure someone can find a use for this but pretty esoteric.

 

And even though most of us have probably been using TitleN, n=1 - 10 it appears that Title00000000002 works the same as Title2. This only displays title1.

title1 "title1";
title2 "title2";
title3 "title3";
title4 "title4";
title5 "title5";
title6 "title6";
title7 "title7";
title8 "title8";
title000000000000000000000000000002 ;

proc print data=sashelp.class (obs=3);
run;
Tom
Super User Tom
Super User

It has a bigger impact on ODS output than on traditional listing output.  Even with TITLE0 the same line with one space is produced as you would get with TITLE1.  But in ODS output the title line and the separator line after it is not there.

title1 ' ';
footnote1 ' ';
proc print data=sashelp.class(obs=2); run;
title0;
proc print data=sashelp.class(obs=2); run;

image.png

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 812 views
  • 0 likes
  • 3 in conversation