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.