2 Questions on Proc Report

Reply
Contributor
Posts: 62

2 Questions on Proc Report

HI

Q1) In SAS 9.1.3 or 9.2 version can I split the data printed to pdf into different panels. ( telephone directory printing). Please find the below code tried.

data test;

  seth sashelp.class

sashelp.class

sashelp.class

sashelp.class

sashelp.class;

run;

ods pdf file="xyz.pdf" ;

options nodate pageno=1 linesize=80 pagesize=60 nocenter;

%macro Panel();

  proc report data=test panels=2 pspace=6 nowd;

    columns name;

    define name / display ;

  quit;

%mend;

%panel

%panel

ods pdf close;

But the data is not printing in two panels? 

Q2) Is there any way to print proc report similar to report writing interface format.... for example row_span, column_span options and row_start,row_end or removing space between two proc report outputs , the requirement is to generate bill.

Contributor
Posts: 62

Re: 2 Questions on Proc Report

Could any one please look into it.... I u need further clarifications please let me know

Super User
Posts: 9,875

Re: 2 Questions on Proc Report

For you Q1 .

ods pdf file="xyz.pdf" columns=2;

options nodate pageno=1 linesize=80 pagesize=60 nocenter;

  proc report data=sashelp.class pspace=6 nowd;

    columns name;

    define name / display ;

  quit;

ods pdf close;

For your Q2 , I will leave it to Cynthia@sas , you should post it at

Xia Keshan

Contributor
Posts: 62

Re: 2 Questions on Proc Report


HI ksharp

Thank You very much for the answer...It helped me.

Thanks again.

Ask a Question
Discussion stats
  • 3 replies
  • 159 views
  • 4 likes
  • 2 in conversation