이 선택에 효율적인 기능이나 JSL이 있습니까?안녕하세요 여러분!
예를 들어 다음 두 파일과 같은 작업을 선택하십시오.
두 열 각각에 키워드가 포함 된 경우에 해당합니다.
"ANY ()"와 같은 함수가 텍스트와 일치 할 수 있습니까?
감사!

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 );물론 "any"를 사용하면 작동하지 않습니다.
다시 :이 선택에 효율적인 기능이나 JSL이 있습니까?안녕,
이 경우 contains () 함수가 원하는 것일 수 있습니다.
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 );