The issue you are running into is that there is not one report output but rather n number of outputs based upon the the actual number of OneWay analyses performed. So when you do your Save MSWord, it goes one by one saving each output. However, it does not append the output to the .doc file, but rather replaces it. So what needs to be done is to place each of the outputs into a JMP Journal, and then save the Journal. This is what is done in the script below
Names Default To Here( 1 );
// Setup an Example Data table
dt = Open( "$SAMPLE_DATA/blood pressure.jmp" );
dataCols = dt << get column names( continuous );
dt:Dose << set name( "WhichTest" );
dt << set name( "Filtered_raw" );
// Run the charts
OWA = Data Table( "Filtered_raw" ) << Oneway(
Y( Eval( dataCols ) ),
X( " WhichTest" ),
Each Pair( 0 ),
Means( 0 ),
Plot Actual by Quantile( 0 ),
Plot Quantile by Actual( 1 ),
Mean Diamonds( 1 )
);
// Create a Journal to store the output in
jj = New Window( "The Output", <<journal, vlb = V List Box() );
// Loop across all of the different output in the OneWay and
// copy the output to the journal
For( i = 1, i <= N Items( OWA ), i++,
vlb << append( Report( OWA[i] )[Outline Box( 1 )] )
);
// Save the journal to disk
jj << Save MSWord( "\\snl\home\malepp\Software\JMP\JMP_Report\Oneway_normalQ.doc" );
jj << close window;
Jim