Date: Thu, 15 Jul 2004 12:10:10 -0400
Reply-To: Venky Chakravarthy <venky.chakravarthy@PFIZER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Venky Chakravarthy <venky.chakravarthy@PFIZER.COM>
Subject: Re: How to make this fast?
On Thu, 15 Jul 2004 11:24:45 -0300, Adriano Rodrigues - Instituto GPP
<adriano@GPP.COM.BR> wrote:
>Hi all,
>
>I have 40 variables, p1-p40.
>
>i want to make if p1=0 then p1=.; to all 40 variables (if p2=0 then p2=.,
if p3=0 then p3=. etc)
>
>can i make this in 1 loop?
>
>thx,
>Adriano
If your objective is to display this in a print out, you could simply
assign a format.
proc format ;
value ztom 0 = . ;
run ;
proc print data = <your input data> ;
format p1-p40 ztom. ;
run ;
Kind Regards,
Venky Chakravarthy
|