Date: Wed, 9 Jan 2002 08:57:55 -0500
Reply-To: kviel <kviel@GMCF.ORG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: kviel <kviel@GMCF.ORG>
Subject: Why STOP? RE: proc format cntlin=class2; when there are missing
values.
Content-Type: text/plain; charset="iso-8859-1"
-----Original Message-----
From: Peter Crawford [mailto:peter.crawford@DB.COM]
Sent: Wednesday, January 09, 2002 8:31 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: proc format cntlin=class2; when there are missing values.
>Here is a demo
>165 data cntl;
>166 retain fmtname '$truble' ;
>167 do star = 1 to 5;
>168 start = put( star, 16.-L );
>169 label = put( star, words20.-L );
>170 output;
>171 end;
>172 start='**OTHER**';
>173 LABEL='CRAZY';
>174 OUTPUT;
>175 STOP;
^^^^^
>176 run;
-----Original Message-----
From: Paul Dorfman [mailto:paul_dorfman@HOTMAIL.COM]
Sent: Tuesday, January 08, 2002 11:55 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: proc format cntlin=class2; when there are missing values.
>data cntlin ;
> retain fmtname 'vehicle' type 'c' ;
> do until (eof) ;
> set class1 (keep=v_id v_type rename=(v_id=start v_type=label)) ;
> output ;
> end ;
> label = ' ' ; hlo = 'O' ; output ;
> stop ;
^^^^^^
>run ;
Why are STOP statements being used. I tested Peter's code comment out the
STOP statement and created the same data set. Is it habit or explicitly
denoting the termination of the data step?
Thanks,
Kevin
Kevin Viel
Georgia Medical Care Foundation
57 Executive Park South, NE
suite 200
Atlanta, GA 30329-2224