BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
saskapa
Quartz | Level 8

Hi,

I was creating a template for my rtf table.

*Define a location for my template ;

*-----------------------------------------------------;

libname  templ 'mydrive\template';

*Define a new style;

*-----------------------------;

proc template;

define style temp1/store=templ.temp1;

parent=style.rtf;

style fonts /

   'docFont'=("<MTserif>,courrier new", 8 pt);

end;

run;

*Create output;

*-------------------------;

ods path (prepend) templ (read);

ods listing close;

ods rtf file='mydrive\all.rtf' style=temp1;

proc report data=sashelp.class nowd ;

column name sex age;

define name/display;

define sex/display;

define age/display;

run;

ods rtf close;

ods listing;

Despite that the code seems to execute correctly and indeed the font change,  has been implemented , I yet  have two warnings in the logs :

WARNING: Could not restore referenced object: style.rtf.

WARNING: Could not find parent template: style.rtf.


Any clue why I do get those warning ?




Regards


saskap

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

I could be because of the typo on:

parent = Styles.RTF;  

note the final s.

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

I could be because of the typo on:

parent = Styles.RTF;  

note the final s.

saskapa
Quartz | Level 8

Thanks RW9 !

It resolved the issue, no warnings..!

saskap

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2516 views
  • 0 likes
  • 2 in conversation