Subscribe Bookmark RSS Feed

can any one share a script which could run a script and save it to the data table

robust1972

Community Trekker

Joined:

Jan 15, 2014

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

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

You'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 <<Save Script to Data Table message to the Tabulate object.

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;

-Jeff
5 REPLIES
Solution

You'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 <<Save Script to Data Table message to the Tabulate object.

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;

-Jeff
robust1972

Community Trekker

Joined:

Jan 15, 2014

thanks, Jeff.

I was trying to use "<<" instead of "=" in line1, then a weird table was save to my data table not the script.

z2632941

Community Trekker

Joined:

Feb 4, 2015

could you know how to rename the saved script  in script

Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Immediately 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

-Jeff
z2632941

Community Trekker

Joined:

Feb 4, 2015

thank 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" );