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 (July 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 23 Jul 2002 05:54:16 -0700
Reply-To:   shiling zhang <shiling99@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   shiling zhang <shiling99@YAHOO.COM>
Organization:   http://groups.google.com/
Subject:   Removing all labels from dataset(++)
Content-Type:   text/plain; charset=ISO-8859-1

data w; label x='xxxxxxxxxxxxxxxx' y='yyyyyyyyyyyy'; retain x y 0;stop;run;

proc contents data=w;run;

proc datasets lib = work ; modify w ; label x =''; label y =' '; quit ;

proc contents data=w;run;

-----Alphabetic List of Variables and Attributes-----

# Variable Type Len Pos Label -------------------------------------------- 1 x Num 8 0 ' 2 y Num 8 8

Look at the label for X. Is that a bug?

But if one uses

attrib _all_ label ='';

The result shows perfect.

-----Alphabetic List of Variables and Attributes-----

# Variable Type Len Pos ----------------------------------- 1 x Num 8 0 2 y Num 8 8


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