Loop doesn't function
Hi,
I'm new with jmp and I have some difficulties to finish my script.
In few words, I wish to subset some tables from a source table.
So, I use "select where" first to determine subsets, then I'm trying to concatenate subsets according to a condition (value present or not in subset).
What's wrong ? Your help will be deeply appreciated.
I don't have enough time to finish my work.
Here's my script:
//open the sources tables
dt = Open( "...." );
transit_A = Open( "..." );
transit_B= Open( "..." );
For( i = 1, i <= 500, i++,
dt << select where( (:"Number" == i) );
subdt = dt << subset( Column() );
subdt << Select All Rows;
subdt = Current Data Table();
if((:"PC" == "......."),
(final_A = transit_A<< Concatenate(subdt , "Final_A" ) ; transit_A = final_P1400),
(:"PC" != "......."),
(final_B = transit_B<< Concatenate( subdt, "FinalB" ) ; transit_B= final_B);
);
Close( subdt );
Close( transit_A );
Close( transit_B);
);
final_A << Set Name( "...." );
final_A = Open( "......" );
final_B<< Set Name( "....." );
final_B = Open( "......" );
Thx,