I am using Proc FCMP to create an output array for each observation in my data set. I would like to aggregate those arrays into one data set at the end of Proc FCMP that I can use as input to the next part of my program. What I tried to do was use the write_array function passing it a macro variable for the data set name (something like rc = write_array('setdata&i', outarray) where I'm using i to loop through each data point earlier on in the procedure. My thought was then to take each of the setdata&i data sets and aggregate them after the Proc FCMP, but Proc FCMP doesn't seem to like having a macro variable stand in for the data set name. I've played around with the quotes, etc but nothing seemed to work. Can anyone help with the right syntax, or an alternative method to aggregate the arrays into one data set? Thanks in advance!
... View more