Date: Fri, 24 Apr 2009 14:54:46 -0400
Reply-To: Akshaya <akshaya.nathilvar@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Akshaya <akshaya.nathilvar@GMAIL.COM>
Subject: Re: Call Missing Routine
In-Reply-To: <b7a7fa630904241142o25739781m2df43f481ea8b394@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Thanks Joe for that. Interestingly, I have to specify an attribute(either
length or format) before the call missing routine, otherwise, the log
says: The MISSING subroutine call does not have enough arguments.
Even in specifying the attributes, I can't just use:
format _a: 3.; /* I need to list all variables explicitly, which
I don't want to manually do */
call missing(of _a:);
Any other ways?
On Fri, Apr 24, 2009 at 2:42 PM, Joe Matise <snoopy369@gmail.com> wrote:
> call missing(of _a:)
> call missing(of _z:)
> should work, as far as I nkow ... as should call missing(of _a: _z:)
> Example:
>
> data test;
> format _a1 _a2 _a3 _a4 8.;
> format _zk _zx _zc _zd _ze $8.;
> call missing(of _a:);
> call missing(of _z:);
> call missing(of _a: _z:);
> run;
>
> -Joe
>
>
> On Fri, Apr 24, 2009 at 1:23 PM, Akshaya <akshaya.nathilvar@gmail.com>wrote:
>
>> Hi All:
>> I'm computing variables from existing SAS datafile I have; the computed
>> variables start with either _a(_a1,_a2...)-->Numeric or
>> _z(_zx,_zv,_zc...)--> Characters. On the beginning of each iteration of
>> Data
>> step loop, I want to set these computed variables to missing. How to
>> specify
>> this in call missing routine, without explicitly specifying the variable
>> names.
>>
>> Some thing like call missing(of _a:, _z:) /* I know it won't work this way
>> */. Please input your suggestions. Have a great weekend!
>>
>> Thanks!
>>
>> --
>> AkshayA!
>>
>
>
--
AkshayA!
|