The SAS Output Delivery System and reporting techniques

how can we repeat a column on each page when output is divided vertically?

Reply
N/A
Posts: 0

how can we repeat a column on each page when output is divided vertically?

I have following data
week dt1 dt2 ID day value
0 --
0 --
0 --
1
1
2
2
3
like this I have around 15 weeks and each week has data for more than one lab day for which dt1 and dt2 are unique. All together there are around 300 obs.
I have written the following code
proc report data=sample nowd;
columns (week day) id, (dt1 d2t val);
define id/across order=data 'Patient Id' spacing=1;
define week/group "Week" width=10;
define day/group "Day" nozero width=10 ' ';
define dt1/group 'Date1' width=10 spacing=1;
define dt2/group 'Date2' width=10 spacing=1;
define val/group " ";
run;

I am getting the data on multiple pages divided vertically . for example first four IDs data is coming on the first page in the following format
Id
week day dt1 dt2 val

but in the second page the columns week and day are not displayed as follows
ID
dt1 dt2 val

I want the columns week, day to be displayed on each page. please help me. I have to do this using proc report only.
Super Contributor
Posts: 394

Re: how can we repeat a column on each page when output is divided vertically?

Use the ID option on the DEFINE statement for DAY. This tells REPORT to put the DAY column and all the columns to the left of DAY on each page of the report. See http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a002473627.htm#a003072099.
Ask a Question
Discussion stats
  • 1 reply
  • 150 views
  • 0 likes
  • 2 in conversation