Hi,
I am trying to allocate variables based on the number of iterations in a for loop.
An better explanation regarding my question is as follows:
This is my current code:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
col = dt<<get column names;
for (i=1, i<=nitems(col), i++,
c(i)= column(dt,i)<<get values;
);
The error message that is shown in the log is :

I wanted to get all the column values for all the columns available in the same data assigned to unique variables.
Eg: All values under the first column are assigned to c1(where i=1), column 2 values are assigned to c2(where i=2), etc
If I change c(i)= column(dt,i)<<get values; --> c1= column(dt,i)<<get values; the script works fine without error.
However this is not what I am looking for since I want each variable name for each column values to be unique and is allocated baased on the number of iterations in the for loop. Can anyone help me to fix my code?
Thank you.
Best Rgds,
Val