Date: Tue, 5 Jun 2001 11:28:17 -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: How to make a dataset with 0 observations?
Content-Type: text/plain; charset="iso-8859-1"
> From: Jay Weedon [mailto:jweedon@EARTHLINK.NET]
> An easy question to answer I'm sure. I know how to make a
> no-observation template from an existing dataset by using the OBS=0
> dsoption, but what if I just want a brand new dataset with no
> observations & two variables X & Y?
1 DATA XY;
2 attrib X length=8
3 Y length=8;
4 stop;run;
NOTE: Variable X is uninitialized.
NOTE: Variable Y is uninitialized.
NOTE: The data set WORK.XY has 0 observations and 2 variables.
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
OpSys: WinNT Ver: 8.1
---> cheerful provider of TESTED SAS code!*! <---
e-mail your SAS improvements to: suggest@sas.com
archives: http://www.listserv.uga.edu/archives/sas-l.html
|