J
Julia
Hi, All -
I was wondering if anyone could give me some insight as to how to
change the format of a data set in Access (v1997).
The data I have is currently in this format:
Identifier Var9701 Var9702 ... Var0201 Var0202 Var0203
111111111 $50.00 $250.00 ... $500.00 $50.00 $250.00
Where the variable represents a monthly value on the same variable
over 60 some consecutive months (VarYYMM).
I would like to change the data so that I have sixty some lines of
data with only three variables for each unique identifier instead of
sixty some variables on each person. The format I'd like to convert it
to looks something like this:
Identifier Date Var
111111111 1/1/97 $50.00
111111111 2/1/97 $250.00
....
999999999 1/1/02 $425.00
999999999 2/1/02 $350.00
999999999 3/1/02 $425.00
The only way I know how to transpose data is via a crosstab query, but
rather than run several dozen crosstab queries, I'd like to be able to
run SQL code to convert these files, as I've got about 200 individual
data sets formatted in this way.
Any help would be greatly appreciated!
Thanks,
Julia Drew
P.S. This data originally comes from a SAS file, so if someone doesn't
know how to accomplish this in Access, but does know how to carry this
out in SAS, that knowledge would also be valuable.
I was wondering if anyone could give me some insight as to how to
change the format of a data set in Access (v1997).
The data I have is currently in this format:
Identifier Var9701 Var9702 ... Var0201 Var0202 Var0203
111111111 $50.00 $250.00 ... $500.00 $50.00 $250.00
Where the variable represents a monthly value on the same variable
over 60 some consecutive months (VarYYMM).
I would like to change the data so that I have sixty some lines of
data with only three variables for each unique identifier instead of
sixty some variables on each person. The format I'd like to convert it
to looks something like this:
Identifier Date Var
111111111 1/1/97 $50.00
111111111 2/1/97 $250.00
....
999999999 1/1/02 $425.00
999999999 2/1/02 $350.00
999999999 3/1/02 $425.00
The only way I know how to transpose data is via a crosstab query, but
rather than run several dozen crosstab queries, I'd like to be able to
run SQL code to convert these files, as I've got about 200 individual
data sets formatted in this way.
Any help would be greatly appreciated!
Thanks,
Julia Drew
P.S. This data originally comes from a SAS file, so if someone doesn't
know how to accomplish this in Access, but does know how to carry this
out in SAS, that knowledge would also be valuable.