Ah thanks for the clarification.
In a test script, I can see that col << Labels to Codes and col << Codes to Labels are legitimate operations because hovering over them gives a description, but they don't seem to do anything. Log just shows "Scriptable". I did a test with the Denim sample data:
:Method << Labels to Codes; :Method << Codes to Labels;
It seems like these operations should work sequentially, but nothing happens.
I am still learning JMP 14 features. It appears to me that Labels to Code is a GUI only command. Maybe Jeff can confirm that for us.
The script insert below shows how to call up the dialog from the GUI, but the Labels to Code JMP dialog is modal and I do not know a method to say click or OK to this dialog via JSL. It might be useful for an interactive program. More below ...
Names Default to Here(1); dt=open("$Sample_Data/Big Class.jmp"); //--- this calls up an interactive window dt:sex << set selected(1); Main Menu("Utilities:Labels to Codes"); /*this window is modal with no otion that I know of that allows a click or << on open( script); like report((Win("Labels to Codes") << child))[OutlineBox("OK")]<<click; */
If you look at the column after using this feature in the GUI, the column is converted to compressed numeric (typically, a1-byte integer), with Value Labels defined and Use Labels enabled.
The script I attached creates a function with arguments col_ref and lbl_lst that performs these tasks.
I wish setting table and column properties (scripts) were easier in JSL and that Main Menu had more functionality. But since we are scripters, there is really no major obstacle if we want to convert a column.
There are no labels assigned to this post.