SAS IML append vector to dataset
<p><strong>I'm trying to append a new vector to a dataset in SAS IML</strong></p>

<p>I create these data:</p>

<pre><code>proc iml;
x = {1 2 3};
y = {1 2 3};
create data1 var {x y};
append;
close data1;
quit;
</code></pre>

<p>And then I would like to append new vector "z" to the dataset</p>

<pre><code>proc iml;
use data1;
read all;
z = x + y;
create data1 var {x y z};
quit;
</code></pre>

<p>But this gives me the error "ERROR: The data set WORK.DATA1 is in use, cannot be created"</p>