Ci sono funzioni efficienti o JSL per questa scelta?Ciao a tutti!
Ad esempio, selezionare operazioni come questi due file:
Ciò è vero se ciascuna delle due colonne contiene una parola chiave.
Una funzione come "ANY ()" può corrispondere al testo?
Grazie!

d2 = Open( "$SAMPLE_DATA\Pizza Profiles.jmp" );
xF = {};
yF = {};
For( j = 1, j <= 4, j++,
Insert Into( xF, d2[j, "ID"] );
Insert Into( yF, d2[j, "Cheese"] );
);
dt = Open( "$SAMPLE_DATA\Pizza Combined No Choice.jmp" );
dt << Select Where( :Cheese == Any( Eval( yF ) ) & :Profile Name == Any( Eval( xF ) ) );
Wait( 0 );
d3 = dt << Subset( Output Table( "text" ), Selected Rows( 1 ), selected columns( 0 ) );
Wait( 0 );Ovviamente, l'utilizzo di "any" non funziona qui.
Ri: Ci sono funzioni efficienti o JSL per questa scelta?Ciao,
La funzione contiene () potrebbe essere quello che stai cercando in questo caso:
https://community.jmp.com/t5/Discussions/Select-rows-where-column-values-match-items-in-an-arbitrary-list/td-p/299
d2 = Open( "$SAMPLE_DATA\Pizza Profiles.jmp" );
xF = {};
yF = {};
For( j = 1, j <= 4, j++,
Insert Into( xF, d2[j, "ID"] );
Insert Into( yF, d2[j, "Cheese"] );
);
dt = Open( "$SAMPLE_DATA\Pizza Combined No Choice.jmp" );
dt << Select Where( contains(yf,:Cheese) & contains(xf,:Profile Name));
Wait( 0 );
d3 = dt << Subset( Output Table( "text" ), Selected Rows( 1 ), selected columns( 0 ) );
Wait( 0 );