Date: Thu, 14 Aug 1997 11:44:41 -0400
Reply-To: "Childs, Randy" <RCHILD@ABTI.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Childs, Randy" <RCHILD@ABTI.COM>
Subject: Re: Line Spacing in Output
Content-type: text/plain; charset=US-ASCII
You don't need to adjust your program or go to the lengths suggested by Tim
Berryhill. Simply do a small amount of pre-processing. Create a variable
that
tells your DATA _NULL_ where to skip.
DATA K;
SET K;
BY QNUM;
IF LAST.QNUM THEN SKIP = 1;
ELSE SKIP = 0;
RUN;
data _null_;
file print n=ps;
options nonumber nodate;
put #3 @3 'Qnum' @15 'Qanswer' @25 'QAweight'
@35 'Qweight' @45 'TotQa' @55 'MaxScore' @65 'Pct';
do i=1 to 67;
set k;
by qnum;
put #1 @6 qnum @18 qanswer @29 n_qaw @38 qweight
@48 n_totqa @56 Max @65 n_pct;
IF SKIP = 1 THEN PUT ' ';
end;
put _page_;
run;
Randy Childs
Alpha-Beta Technology
rchild@abti.com