Date: Fri, 30 Jan 2004 23:26:43 -0500
Reply-To: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject: Re: help needed replacing variable attributes.
Are you using the word "attribute" casually, as a synonym for "value"?
That's not a good idea.
A variable's attributes are properties of the entire "column", like number
of bytes, or format.
A variable's values are the data content, which generally differs from row
to row.
If you really mean "attribute", please clarify what you need to do.
On Fri, 30 Jan 2004 22:52:57 -0000, davy <no.spam@HERE.PLEASE> wrote:
>I have a dataset with well over two hundered variables.
>
>All of the variables are character.
>
>What I would like to do is to replace each instance where a variable
>attribute is a "T","N" or "_" with the letter "Y".
>
>Is there anyway i can do this with a global statement or something (rather
>than laboriously typing out 'if statements' for each variable).
>
>I would appreciate any help.
>
>Thanks for your time.
>
>Davy
|