BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Tzahi
Calcite | Level 5

Hi,

I need a way to retain all the titles information programmatically.

However, when using the title statement with ODS formatting, the information is not captured in dictionary.titles.

for example:

title2 j=right italic "right" j=left "left";

The dictionary.titles only display the text of the title:

Tzahi_0-1665489304405.png

Can I retrieve the formatting information from a different place?

 Is there a different method to retain the titles information during execution?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

Maybe this.  Is there a vGtitle view?  I did not see one.

 

title j=left
font= 'Times New Roman' color=blue bcolor=red "Student Data "
c=green bold italic "Growth Measurements";
title2 j=center color=red underlin=1
height=28pt "2"
height=24pt "0"
height=20pt "1"
height=16pt "8";
footnote j=left height=20pt
color=red "Prepared "
c='#FF9900' "on";
footnote2 j=center color=blue
height=24pt "&sysdate9";
footnote3 link='http://support.sas.com/documentation' "SAS Documentation";
options ls=max;
filename FT33F001 temp;
proc printto log=FT33F001 new;
proc goptions title nolist;
	run;
proc printto;
	run;
data tf;
   infile FT33F001 length=l;
   input line $varying256. l; 
   if line in:('TITLE' 'FOOTNOTE');
   run;
proc print;
   run;
Capture.PNG

View solution in original post

2 REPLIES 2
data_null__
Jade | Level 19

Maybe this.  Is there a vGtitle view?  I did not see one.

 

title j=left
font= 'Times New Roman' color=blue bcolor=red "Student Data "
c=green bold italic "Growth Measurements";
title2 j=center color=red underlin=1
height=28pt "2"
height=24pt "0"
height=20pt "1"
height=16pt "8";
footnote j=left height=20pt
color=red "Prepared "
c='#FF9900' "on";
footnote2 j=center color=blue
height=24pt "&sysdate9";
footnote3 link='http://support.sas.com/documentation' "SAS Documentation";
options ls=max;
filename FT33F001 temp;
proc printto log=FT33F001 new;
proc goptions title nolist;
	run;
proc printto;
	run;
data tf;
   infile FT33F001 length=l;
   input line $varying256. l; 
   if line in:('TITLE' 'FOOTNOTE');
   run;
proc print;
   run;
Capture.PNG
Tzahi
Calcite | Level 5
Thank you!
That was exactly what I was looking for.
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
  • 2 replies
  • 882 views
  • 2 likes
  • 2 in conversation