I need to shuffle one VarX in a large dataset keeping the other variables ordered as they were (as part of permutation analysis).
I tried to KEEP that VarX in a DATASET COPY command creating a dataset with only one var. The plan was to shuffle that there adding a uniform random var (RVar) and then sort it on RVar, creating a shuffled VarX.
Then MERGE the two datasets having the new VarX replace the old one.
I tried:
DATASET COPY tmpdata
/KEEP VarX.
Got an error message: Expecting word or = sign. Found /.
Searched everywhere for the proper syntax........... Anybody here?
I tried to KEEP that VarX in a DATASET COPY command creating a dataset with only one var. The plan was to shuffle that there adding a uniform random var (RVar) and then sort it on RVar, creating a shuffled VarX.
Then MERGE the two datasets having the new VarX replace the old one.
I tried:
DATASET COPY tmpdata
/KEEP VarX.
Got an error message: Expecting word or = sign. Found /.
Searched everywhere for the proper syntax........... Anybody here?