The Summary command creates a new table of summary statistics according to the grouping columns that you specify. Do not confuse Summary with Summarize, which collects summary statistics for a data table and stores them in global variables. See Store Summary Statistics in Global Variables for details.
summDt = dt << Summary(
	Group( groupingColumns ),
	Subgroup( subGroupColumn ),
	Statistic( columns ),// where statistic is Mean, Min, Max, Std Dev, and so on.
	Output Table Name( newName ) );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
summDt = dt << Summary(
	Group( :age ),
	Mean( :height, :weight ), Max( :height ), Min( :weight ),
	Output Table Name( "Height-Weight Chart" ) );
Tip: Output Table Name can take a quoted string or a variable that is a string.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
summDt = dt << Summary( Group( :age ), Mean( :height ),
	Link to Original Data Table( 0 )
);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
summDt = dt << Summary( Group( :age ), Mean( :height ),
	Include marginal statistics
);
You can specify the format of the statistics column name using statistics column name format(). Table 8.2 shows the option and examples:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
summDt = dt << Summary( Group( :age ), Mean( :height ),
	statistics column name format( "stat of column" )
);
The height column is named Mean of height.

Help created on 7/12/2018