Hi, I have created a summary report using proc report with 2 pages tables (page 2 and 3). I also have report background in the first page and technical notes in the forth page. This script outputs a total of 4 pages PDF report with ODS destination nicely with no issues when I run this program (.epg) from the Enterprise Guide 8.3.
However, when I schedule to run this program (saving as .sas) in SAS Management Console (9.4), it outputs 2 and 3rd pages data tables but does not write any text in 1 and 2 page with proc odstext or ODS TEXT.
Just wondering if SAS Management Console (i.e. to run program on a specific time) using .sas program can't output odxtext?
Sample odstext script that I am using:
Proc odstext;
p ' Source:'/ style=[color=blue fontsize=11.5pt fontfamily=Calibri fontweight=bold];
list;
item "^{style[fontstyle=italic] }Date Extraction: &Extraction" / style=[fontsize=11pt fontfamily=Calibri];
item "^{style[fontstyle=italic] }Some data accessed through a Microsoft Access interface." / style=[fontsize=11pt fontfamily=Calibri];
end;
run;
Thanks
Where is the ODS destination set in relation to this code?
What does you your log show?
SMC-scheduled jobs run SAS programs in batch mode. There is no default destination for ODS output when run in batch so you need to specify one. It could be as simple as adding something similar to this at the start of your program:
ods html body = "Myfolder\Myoutput.html";
And it's a good idea to do this at the end of your program:
ods html close;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.