SAS ODS help

Accepted Solution Solved
Reply
Contributor kds
Contributor
Posts: 31
Accepted Solution

SAS ODS help

Hi,

Using SAS ODS, is it possible to display data in below format in pdf :

Like :

Page1
-----

txt1txt5
txt2txt6
txt3txt7
txt4txt8

When I display/use  ODS PDF TXT= somestyle 'txt5' ,  it should automatically go to the top (and get displayed next to 'txt1'....)
Currently the 'txt5' moves to the next page..which I dont want   and want it to get displayed on the same page ...(basically want to utilize the page space that is left blank.......)

I cannot hardcode txt1 & txt5 to be in one line as I dont know which two txts will be associated with each other.


Page2
-----

txt9txt13
txt10txt14
txt11txt15
txt12txt16

so on for page 3, 4..                 Is this possible?       Pls guide....


Accepted Solutions
Solution
‎11-19-2012 04:53 PM
Super User
Posts: 17,797

Re: SAS ODS help

Yes its possible.

Use the columns option in ods pdf statement.

ods pdf file='c:\temp\sample_pdf.pdf' columns=2;

proc print data=sashelp.stocks(obs=1000);

var stock open;

run;

ods pdf close;

View solution in original post


All Replies
Solution
‎11-19-2012 04:53 PM
Super User
Posts: 17,797

Re: SAS ODS help

Yes its possible.

Use the columns option in ods pdf statement.

ods pdf file='c:\temp\sample_pdf.pdf' columns=2;

proc print data=sashelp.stocks(obs=1000);

var stock open;

run;

ods pdf close;

Contributor kds
Contributor
Posts: 31

Re: SAS ODS help

Thank you very much Reeza!


☑ This topic is SOLVED.

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

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