can any one share a script which could run a script and save it to the data table<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />can any one share a script which could run a script and save it to the data table? like plot a graph or tabulate using a data table then save this script to the data table. I often need to do this things and I would like to automate it but have not been successful.
attached the script and data table, the script could does the tabulate but where I need help is telling jmp to save the tabulating script into the data table.
Thanks!
Evan
Re: can any one share a script which could run a script and save it to the data tablethank you , it also can works like this code,
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Script( "New Script2", Distribution( Column( :Height, :Weight ), By( :sex ) ) );
Wait( 1 );
a={"New Script","New Script2"};
//a="New Script";
dt << Rename Table Script( a[2], "Great Script" );
Re: can any one share a script which could run a script and save it to the data tableImmediately after saving the script try something like this.
scripts=data table("Iprog")<<get table script names;
data table("Iprog")<<Rename Table Script(scripts[nitems(scripts)], "My script");
-Jeff
Re: can any one share a script which could run a script and save it to the data tablecould you know how to rename the saved script in script
Re: can any one share a script which could run a script and save it to the data tablethanks, Jeff.
I was trying to use "<<" instead of "=" in line1, then a weird table was save to my data table not the script.
Re: can any one share a script which could run a script and save it to the data tableYou're really close.
You need to save a reference to the Tabulate object by assigning it to a variable when you create it.
Then send the <
tab=Data Table( "Iprog" )<<Tabulate(
Show Tooltip( 1 ),
Show Test Build Panel( 1 ),
Add Table(
Column Table(
Analysis Columns( :Name( "Ipr(mA)" ) ),
Statistics( Min, Median, Max )
),
Row Table( Grouping Columns( :bl, :vddwl, :vddio ) )
)
);
tab<< Save Script to Data Table;