When I code a fairly complex script, I typically use the following structure for my code:
Main = Expr(
returna = A(passing variables);
returnb = B(passing variables);
);
A = Function({Passed variables},
processing code
);
B = Function({Passed variables},
processing code
);
// Enter the script by executing the Main section
Main;
Concering your questuions about Recode and Col Info items, the answers are, No and Yes. There is no direct funtion to run the Recode element from interactive JMP. This is because it is easier to replicate the functionality in open JSL.
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
dt:Sex[ dt << Get Rows Where( :Sex == "F" )] = "Female";
dt:Sex[ dt << Get Rows Where( :Sex == "M" )] = "Male";
// or
For Each Row(
If( :Sex == "F", :Sex = "Female",
:Sex = "Male"
);
As for items in the Col Info dialog box, Formating, Column Properties such as Value Ordering, Spec Limits, etc. are all available in JSL to be changed to what they need to be changed to.
All of this is covered in the Scripting Guide
Help==>Books==>Scripting Guide
and/or in the Scripting Index
Help==>Scripting Index
Jim