Date: Wed, 10 Apr 2002 15:45:24 -0400
Reply-To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject: Re: Several base SAS noob questions
Content-Type: text/plain
> From: Mike Fay [mailto:rmf4@CDC.GOV]
> 2) I'm QAing a largish SAS app. It walks through a number of datasets,
> making new datasets (usually subsets) and tacking a new field
> or three onto
> the 'end' of the new subsets. By default, the new fields show
> up to the far
> right (in SAS's dataset viewer applet), which means I'm constantly
> scrolling to the far right to view what's of most interest to me.
I recommend using attrib
however, length will also work for this
what you are doing is declaring the new vars
before SAS Supervisor reads the data descriptor of the old data set.
DATA NEW;
attrib NewVar1 length = <$> 8
NewVar2 length = <$> 8
;
set OLD;
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
|