Date: Thu, 30 Apr 1998 07:23:52 -0600
Reply-To: jan.peake@RRMC.CO.UK
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: jan.peake@RRMC.CO.UK
Organization: Deja News - The Leader in Internet Discussion
Subject: PUT Statement problems
Can somebody tell me how the "c" part in the code below works ? It is a
program that has been wrote by a former coleague. What I cannot understand is
how the "c" value changes to 2 and 3....
I have spent a lot of time looking through the manuals and can find nothing
relating to a "c" command within the put statement, but I cant see how it
would increment unless it was part of the datastep function...
Jan.
retain lincount 0;
if first.item then do; c=1;
if seq=0 then seq=1;
if 53-lincount lt (seq+3) then do;
put _page_; lincount=seq+3; end;
else if 53-lincount=seq+3 then lincount=seq+3;
else lincount=lincount+seq+3;
put @1 vin @19 serial 9. @29 deal @34 clno @41 miles 7.
@49 dd z2. @51 '/' @52 mm z2. @54 '/' @55 yy z2.
@58 def10 @69 desc8 @88 partno
@107 matl comma7.2 @130 mr;
end;
if c=2 then put @5 date @69 desc10 @;
if c=3 then put @58 rep9 @69 desc9 @;
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading