Shuffle one var in a large dataset (DATASET COPY syntax)


New Member
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:

Got an error message: Expecting word or = sign. Found /.
Searched everywhere for the proper syntax........... Anybody here?