subset a table with category in a column and name the sub tables with the cat. name;
I wrote a short script as below but it name both table as "F" and "F2", rather than "F" and "M". Anything I did wrongly?
Names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
dtsumm = dt << Summary(
Group( :sex )
);
for(x=1,x<=nrow(dtsumm),x++,
dt<<select where(dt:sex==dtsumm:sex)<< subset(Output Table Name(:sex));
);