I have a script where I select rows from a table based on certain criteria:
dt << Select Where( :gender == "female" & :dx == "ild" );
How can I write these "selected rows" to a new file?
Thanks
awalts12,
Sounds like you have column A selected. In that case JMP will subset the selected column and selected rows.
dt << Clear Column Selection();
sub=dt<<Subset(output table name(<Your Table Name>), Selected Rows(1));
Awalts12,
You should be able to do the following:
Dave
This looks good ...
But it outputs only the first column (call it Column A) in each row. Is there a way to write the entire row (Columns A - Column R).
Thanks again
The first column may have been selected. Try this to override any column selection:
sub = dt << Subset(output table name("my_sub"), Selected Rows(1), Selected Columns(0));
Thanks for the help - this works nicely.
One other question as I am new to JMP's syntax. How can I include a wild card in the "select Where" command.
For example
dt << Select Where( :name == "A*")
doesn't seem to work - I'd like to be able to select all names starting with an A.
Thanks again.