Hi
The script will read numeric column name from the file. If there is only 1 column, I want to create the new column and assign value in the column with the header reading from file. In below case, the new column should have initial value = ITH
![yanee_0-1598483236323.png yanee_0-1598483236323.png](https://community.jmp.com/t5/image/serverpage/image-id/26429iEB3CB77228165F6C/image-size/medium?v=v2&px=400)
I use below script but it doesn't assign the initial value. Not sure why.
ColList2 = Data Table( "raw data" ) << get column names( numeric );
if(n items (ColList2) ==1,
new column("Label",character, nominal,set each value (ColList2));
);