Help using Base SAS procedures

proc template warnings :could not not restore referenced object style rtf

Accepted Solution Solved
Reply
Contributor
Posts: 54
Accepted Solution

proc template warnings :could not not restore referenced object style rtf

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


Accepted Solutions
Solution
‎07-30-2015 10:38 AM
Super User
Super User
Posts: 7,413

Re: proc template warnings :could not not restore referenced object style rtf

I could be because of the typo on:

parent = Styles.RTF;  

note the final s.

View solution in original post


All Replies
Solution
‎07-30-2015 10:38 AM
Super User
Super User
Posts: 7,413

Re: proc template warnings :could not not restore referenced object style rtf

I could be because of the typo on:

parent = Styles.RTF;  

note the final s.

Contributor
Posts: 54

Re: proc template warnings :could not not restore referenced object style rtf

Thanks RW9 !

It resolved the issue, no warnings..!

saskap

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 641 views
  • 0 likes
  • 2 in conversation