I have two problems with I guess JMP assigns tables and uses them later. Steps 2 and 3 will be in separate scripts being called in using the Include()
function.
// Step 1: Pull in data from server and assign it to dt_testdata_ss
dt_testdata_ss = Open Database( <server string>, <query string> , "dt_testdata_ss" );
// Step 2: creates new table with conditions
dt_testdata_ss_tx = dt_testdata_ss
<< select where ( (:col_1 == 24) & (:col_2 == 1))
<< subset( output table name("dt_testdata_ss_tx"));
// Step 2a: uses dt_testdata_ss_tx in graphplot.jsl
// Step 2b: uses dt_testdata_ss_tx in distribution.jsl
// Step 3: creates new table with conditions
dt_testdata_ss_rx = dt_testdata_ss
<< select where ((:col_1 == 16) & (:col_2== 3 ))
<< subset( output table name( "dt_testdata_ss_rx"));
// Step 3a: uses dt_testdata_ss_rx in graphplot.jsl
// Step 3b: uses dt_testdata_ss_rx in distribution.jsl
I now have 3 tables open at the same time and i can't call in the correct table to the script that you provided. I even went as far as
dt_testdata_ss
dt_testdata_ss_tx
dt_testdata_ss_rx
When i run your script i am getting the following error when i run it with changing dt
to dt_testdata_tx
or dt_testdata_rx
:
ERROR: invalid argument in access or evaluation of 'Close' , Close *###*/(dtSum, nosave)
I can only assume that dt is not being assigned to dt_testdata_tx or dt_testdata_rx because the table doesn't execute. I can't figure out how to call in a certain table to manipulate if all 3 are open. Suggestions?
Thanks in advance
dt = current data table(); // removed this line
dtsum = dt // changed dt to either dt_testdata_ss_tx or dt_testdata_ss_rx
dtFinal = dt // changed dt to either dt_testdata_ss_tx or dt_testdata_ss_rx