Example of what I think your after:
DO X = 1 TO 10;
Y = 'A';
Y_X = 'B';
X_Y = 2;
SET ONE (KEEP = X: OBS = 0);
SET ONE (KEEP = Y: OBS = 0);
PROC CONTENTS DATA = TESTX;
PROC CONTENTS DATA = TESTY;
From: SAS(r) Discussion on behalf of William Krause
Sent: Tue 12/28/2004 3:58 PM
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.
Do you Yahoo!?
Dress up your holiday email, Hollywood style. Learn more.