Hi
I'm trying to name my column names based on the string word in the first row of every other column as per described in the picture.
![Capture.PNG Capture.PNG](https://community.jmp.com/t5/image/serverpage/image-id/16947i71F188209B9F80C7/image-size/large?v=v2&px=999)
My script can't seem to work. I am finding a way to get the string value in the first row but doesn't seem to work. Can you help me out?
dt = Current Data Table();
newname = dt << select rows (1) << print ;
For( i = 2, i <= N Cols( dt ), i=i+2,
Column( dt, i+1 ) << Set Name( newname );
);