JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
Created:
Oct 1, 2009 08:49 AM
| Last Modified: Sep 26, 2017 7:35 AM(20853 views)
Hello community:
One can group columns by selecting them in the columns window and choosing "Group columns" in the context menu. Is there a JSL statement doing the same thing? I found nothing in the operators index or scripting guide.
Here's an example of how to do Group Columns in a script.
dt = current data table(); //Following Expects Fitness Table to be Current; column("RunPulse") << Set Selected(1); column("RstPulse") << Set Selected(1); column("MaxPulse") << Set Selected(1);
Here's an example of how to do Group Columns in a script.
dt = current data table(); //Following Expects Fitness Table to be Current; column("RunPulse") << Set Selected(1); column("RstPulse") << Set Selected(1); column("MaxPulse") << Set Selected(1);
I guessed. The JSL messages corresponding to menu items tend to be the same as the equivalent menu item text. The JMP Scripting Guide (Help>Books>JMP Scripting Guide) contains a pretty complete list of JSL statements and basic usage. I think "group columns" just was overlooked when the most current edition was made. I suppose there is an outside possibility that it was undocumented because it's not thoroughly tested. If you are worried about that possibility you may want to query JMP support to verify it's safe to use (in JSL) in the current 8.0.1 version.
Thanks for a more complete illustration of the "group columns" syntax. Do you know if there is an extension of it that allows grouping non contiguous columns, e.g. in the Fitness table just RunPulse and MaxPulse? If that cannot be done directly then the Selects followed by the simpler group columns does permit it which is the only advantage to it I can see. The syntax you illustrate is more compact and direct.