Dataset has 4 variables:
id v1 v2 v3
I want to automate the creation of 3 datasets, each with 2 variables: id and one of the 3 variables from the original dataset. I know I want to use an array, but not sure exactly how to set up the macro code.
Need to extend this to dataset with large number of variables.