Thanks. You miss my point a little. I am asking how to use the macro variable in SAS, and get the program to run.
I am trying to save output from analysis following a simulation of data. There will be lots of replicates.
However, the question is more general than that. In Stata, I can just start typing code, and it is very simple. In SAS, it seems to complain unless code is done within the confines of a Procedure or Data step. I want to write code that surrounds and manages procedures and data steps, that won't be a part of either, and SAS feels really clunky in that regard. So again, without going into detail on the data, how would I save 5 different copies of the same data set with slightly different names using a macro to change the target file name?
Thanks
Paul