Hi
I have a a JMP dataset and want to a add the same prefix to all the column names in that dataset, my code below doesn't do quite what I want.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = dt << For( i = 25, i <= N Cols( dt ), i++,
cName = Column( dt, i ) << Get Name;
newname = cName || "Prefix_";
Column( dt, i ) << Set Name( newname );
);
Now, a second scenario:
Imagine the column "sex" in "Big Class" contains Fs only (or Ms).
How could I the access that contant and use it as a prefix by the help of a utility/macro variable in the code above?
Cheers, Newbie