|
Hi,
Happy New Year everyone...
A colleague asked if there is a way to prevent SAS from beginning output on
a new page. Not knowing the answer, I'm posting here.
Test code (submitted in DMS on Windows):
options ps=max nopagebreakinitial;
proc print data=sashelp.class;
run;
proc print data=sashelp.class;
run;
OK, so nobreakinitial is a config file or invocation option, so that doesn't
work. (Little birdies, if you're listening, why is it only a config or
invocation option???)
My desired output would be:
The SAS System 13:31 Tuesday, January 4, 2011 1
Obs Name Sex Age Height Weight
1 Alfred M 14 69.0 112.5
2 Alice F 13 56.5 84.0
3 Barbara F 13 65.3 98.0
4 Carol F 14 62.8 102.5
5 Henry M 14 63.5 102.5
6 James M 12 57.3 83.0
7 Jane F 12 59.8 84.5
8 Janet F 15 62.5 112.5
9 Jeffrey M 13 62.5 84.0
10 John M 12 59.0 99.5
11 Joyce F 11 51.3 50.5
12 Judy F 14 64.3 90.0
13 Louise F 12 56.3 77.0
14 Mary F 15 66.5 112.0
15 Philip M 16 72.0 150.0
16 Robert M 12 64.8 128.0
17 Ronald M 15 67.0 133.0
18 Thomas M 11 57.5 85.0
19 William M 15 66.5 112.0
The SAS System 13:31 Tuesday, January 4, 2011 2
Obs Name Sex Age Height Weight
1 Alfred M 14 69.0 112.5
2 Alice F 13 56.5 84.0
3 Barbara F 13 65.3 98.0
4 Carol F 14 62.8 102.5
5 Henry M 14 63.5 102.5
6 James M 12 57.3 83.0
7 Jane F 12 59.8 84.5
8 Janet F 15 62.5 112.5
9 Jeffrey M 13 62.5 84.0
10 John M 12 59.0 99.5
11 Joyce F 11 51.3 50.5
12 Judy F 14 64.3 90.0
13 Louise F 12 56.3 77.0
14 Mary F 15 66.5 112.0
15 Philip M 16 72.0 150.0
16 Robert M 12 64.8 128.0
17 Ronald M 15 67.0 133.0
18 Thomas M 11 57.5 85.0
19 William M 15 66.5 112.0
with no pagebreak between the first and second proc print outputs.
I know I could kludge something together by writing to a file,
post-processing the file to remove form feeds, then print via a data _null_
step.
What I want to know is if SAS will let me do this easily.
Thanks,
Scott
|