I have a data table with a bunch of new columns based on formulas I laboriously entered manually. I want to create a JSL script that will allow me to recreate all these columns in another table.
The following script will return what I want for a single column:
dt=current data table();
column(dt,1) << Get script;
I wanted to automate it using a FOR loop, but can't get it to work. Any suggestions on how to fix this would be greatly appreciated!
Here is what I tried:
dt=current data table();
j= N cols(dt);
For( i = 1, i <=j , i++,
Column(dt,i) << Get Script;
);