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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 292 views
  • 2 likes
  • 2 in conversation