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

Thanks Chris!

I have now completed the step you mentioned above !

 

I ran :

 

%let report_dir = %sysfunc(pathname(work));

 

ods pdf file="&report_dir/Report.pdf" pdftoc=1 startpage=yes bookmarklist=hide;
Title j=l "^{style[preimage=&report_dir/B.png]}";

 

and get the error :

ERROR 22-322: Syntax error, expecting one of the following: a name, !, @, DYNAMIC, EXPRESSION, RESOLVE, SYMGET, _UNDEFINE_,
_UNDEF_, _UND_, |.

ChrisHemedinger
Community Manager

Try wrapping the preimage value in extra quotes.

 

ods escapechar='^';
ods pdf file="&report_dir./Report.pdf" pdftoc=1 startpage=yes bookmarklist=hide;

Title j=l "^{style[preimage=""&report_dir./B.png""]}";
SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
new_sas_user_4
Quartz | Level 8

Worked like a charm!!

Thanks a ton for your patience and help!! 🙂

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 17 replies
  • 5939 views
  • 1 like
  • 4 in conversation