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 (December 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 28 Dec 2004 16:28:50 -0600
Reply-To:   "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Dunn, Toby" <Toby.Dunn@TEA.STATE.TX.US>
Subject:   Re: Creating an empty SAS data set
Comments:   To: William Krause <wkrause2003@YAHOO.COM>
Content-Type:   text/plain; charset="iso-8859-1"

William, Example of what I think your after: DATA ONE; DO X = 1 TO 10; Y = 'A'; Y_X = 'B'; X_Y = 2; OUTPUT; END; RUN; DATA TESTX; SET ONE (KEEP = X: OBS = 0); RUN; DATA TESTY; SET ONE (KEEP = Y: OBS = 0); RUN; TITLE "TESTX"; PROC CONTENTS DATA = TESTX; RUN; TITLE "TESTY"; PROC CONTENTS DATA = TESTY; RUN; // HTH Toby Dunn

________________________________

From: SAS(r) Discussion on behalf of William Krause Sent: Tue 12/28/2004 3:58 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Creating an empty SAS data set

How do I create an empty data set using the variables from an existing data set?

There are 100's of variables in the existing sas dataset.

Also there are two distinct categories of variables - as black and blue in the existing SAS data set.

Therefore I want one SAS data set with only black variables and a second SAS data set with only blue variables.

How can this be accomplished? I prefer not to use Proc Append with the Force option.

TIA

wkrause2003@yahoo.com

--------------------------------- Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more.


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