@BigMoney8 Welcome to the JMP community!
Is this what you're looking for? The script below adds 3 table scripts to Big Class.jmp, so scroll down to the bottom of the table scripts list to see them and interact with them. The first two are each separate distribution reports. The last one creates a new window with both reports in them. This script doesn't save anything though, so I encourage you to browse through the Scripting Index and see what syntax of Save, or other function, is correct for your needs.
Names default to here(1);
dt = open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Script( "Distribution 1",
Distribution(
Nominal Distribution( Column( :age ) ),
Nominal Distribution( Column( :sex ) )
)
);
dt << New Script( "Distribution 2",
Distribution(
Nominal Distribution( Column( :age ) ),
Nominal Distribution( Column( :height ) ),
Nominal Distribution( Column( :weight ) )
)
);
// Makes a table script - run to see both distribution reports in one window!
dt << New Script( "One window",
New Window( "Combined reports",
V list box( // Distribution 1 report
Distribution(
Nominal Distribution( Column( :age ) ),
Nominal Distribution( Column( :sex ) )
)
),
V list box( // Distribution 2 report
Distribution(
Nominal Distribution( Column( :age ) ),
Nominal Distribution( Column( :height ) ),
Nominal Distribution( Column( :weight ) )
)
),
)
);
Learning every day!