here's an example that might be useful to work from
 
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );
cd=Column Dialog(
	exy =
	ColList( "Y",
		Min Col( 1 ),
		Max Col( 10 ),
		Data Type( "Numeric", "Continuous" )
	),
	exx =
	ColList( "X",
		Min Col( 1 ),
		Max Col( 10 ),
		Modeling Type(
			{"Nominal"}
		)
	),
	exby =
	ColList( "By",
		Min Col( 1 ),
		Max Col( 10 ),
		Modeling Type(
			{"Nominal"}
		)
	)
);
show(cd);
eval(cd[1]);eval(cd[2]);eval(cd[3]);
  //evaluate the variables from the list of things that came from the dialog
yyy=expr(y());
xxx=expr(x());
ebyby=expr(By());
for (i=1, i<=nitems(exy), i++,
insert into(yyy, exy[i]));
for (i=1, i<=nitems(exx), i++,
insert into(xxx, exx[i]));
for (i=1, i<=nitems(exby), i++,
insert into(ebyby, exby[i]));
ow=expr(Oneway());
insert into(ow, evalexpr(yyy));insertinto(ow,evalexpr(xxx));insertinto(ow,evalexpr(ebyby));
show(ow);ow;
					
				
			
			
				
	JMP Systems Engineer, Health and Life Sciences (Pharma)