I would like to tabulate some data from document 'Data1', make this tabulated data into a new data table, and then save the new data as document 'Data2', here is my first high level stab at this and doesn't seem to work, any quick guidance?
dt = Open( "Data1.jmp", invisible );
(Data Table( "Data1" ) << tab = dt << Tabulate(
Add Table(
Column Table( Grouping Columns( :Code LLT ) ),
Row Table( Grouping Columns( :CodeTypePrmaryAndDesc 3, :CodeTypePrmaryAndDesc 4 ) )
)
));
dt_tab << Make Into Data Table
dt_tab << set name( "Tabulate" );
dt_tab << Save( "Data2.jmp" );