LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 26 Jun 2000 14:49:37 +0100
Reply-To:     Peter Crawford <peter.crawford@DB.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Peter Crawford <peter.crawford@DB.COM>
Subject:      Re: Setting all variable labels to blank
Comments: To: grueninger@ibgrueninger.de, Abelson_R@BLS.GOV
Content-type: text/plain; charset=us-ascii

I don't like throwing away information, so may I recommend using a view which has all labels set to blank, or, using Ingenieurbuero Grueninger's technique they can be set to low values data dataV / view = dataV ;

set your.data ;

attrib _all_ label = ' ';

/* or, following the idea from Ingenieurbuero Grueninger */

attrib _all_ label = '00'x ;

Run;

Using this technique you keep any information in the original labels; you don't need to generate all the variable names from dictionary.columns for "modify <varname> label=" statements in proc datasets; you don't generate a second copy of the data; you don't need to know _any_ variable names.

However, when using work.dataV, you would lose the benefit of any indexes on the underlying data.

Perhaps aceptable ?

Datum: 22/06/2000 13:11 An: SAS-L@listserv.uga.edu

Antwort an: grueninger@ibgrueninger.de

Betreff: Re: Setting all variable labels to blank Nachrichtentext:

And for those you which are curious to know how to avoid labels and variable names with proc print:

data test; label x = '00'x; label y = '00'x; label z = '00'x; x = 1; y = 2; z = 3; run; proc contents;run; proc print label; run;

Abelson_R@BLS.GOV (Abelson_R) wrote:

>Is there an easy way to set all of the variable labels in a dataset to >blank?

Ingenieurbuero Grueninger Uhlbergstr. 15 72631 Aichtal (Germany) email: grueninger@ibgrueninger.de


Back to: Top of message | Previous page | Main SAS-L page