cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Jackie_
Level VI

Sserializing column groups

Hi @txnelson ,

 

 want to assign numbers only to a particular group of columns.

For eg: In this case, I want to serialize the column group "Tests". There are more than 100 columns in the tests groups. Please can you help me with the jsl? 

Jacksmith12_0-1629817932581.png

Many thanks,

Jack

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Sserializing column groups

One just needs to get the list of columns in the data table group and then change the names.

Names Default To Here( 1 );
dt = Current Data Table();

theGroup = dt << get column group( "Tests" );

For( i = 1, i <= N Items( theGroup ), i++,
	theGroup[i] << set name( Char( i ) || ". " || char( theGroup[i] << get name ) )
);

txnelson_0-1629819846483.png

 

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Sserializing column groups

One just needs to get the list of columns in the data table group and then change the names.

Names Default To Here( 1 );
dt = Current Data Table();

theGroup = dt << get column group( "Tests" );

For( i = 1, i <= N Items( theGroup ), i++,
	theGroup[i] << set name( Char( i ) || ". " || char( theGroup[i] << get name ) )
);

txnelson_0-1629819846483.png

 

Jim

Recommended Articles