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 2001, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?
Comments: To: Jay Weedon <jweedon@EARTHLINK.NET>
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


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