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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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