The SAS Output Delivery System and reporting techniques

ods html text in SAS 9.4

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 12
Accepted Solution

ods html text in SAS 9.4

 Does the ODS go before or after a libname?


Accepted Solutions
Solution
‎09-21-2016 08:44 AM
Super User
Posts: 19,875

Re: ods html text in SAS 9.4

@aweaver Please mark the question as Solved if you have your answer. Thanks!

View solution in original post


All Replies
Trusted Advisor
Posts: 1,586

Re: ods html text in SAS 9.4

LIBNAME and ODS are declarative statements and independent.

You can use them in any order.

 

Usually I prefer to declare all libnames on start of my program

while ODS I preffer to to code starting the output session.

SAS Super FREQ
Posts: 8,868

Re: ods html text in SAS 9.4

[ Edited ]

Hi -- does the ODS what??? There are a variety of statements:

ODS PROCTITLE;
ODS RESULTS;
ODS OUTPUT;
ODS HTML file=...;
ODS HTML TEXT=...;
ODS RTF file=...;
ODS PDF file= ....;
etc, etc, etc.

Your question title speaks of using ODS HTML text. What code have you tried and how are the results you're getting either satisfactory or unsatisfactory.

Typically, your LIBNAME statement is placed at the TOP of your program when the program starts so that you immediately "plug" SAS into the location of the data. So, theoretically, something like this is a good pattern to follow.

cynthia

 

** model statements;

libname mystuff 'C:\class\SAS\ecprg193';

ods html file='c:\temp\myoutput.html' style=htmlblue;

ods html text='This is at the top of the table';

proc print data=mystuff.customer(obs=10);
run;

ods html close;
Occasional Contributor
Posts: 12

Re: ods html text in SAS 9.4

Posted in reply to Cynthia_sas
Thank you so much this helps a ton!
Solution
‎09-21-2016 08:44 AM
Super User
Posts: 19,875

Re: ods html text in SAS 9.4

@aweaver Please mark the question as Solved if you have your answer. Thanks!

☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 429 views
  • 1 like
  • 4 in conversation