<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: JMP &amp;gt; JSL &amp;gt; Response Screening &amp;gt; Populate columns from Column Selection? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527337#M75119</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks. I knew it must be simple. Lessons learned: do not over-complicate things.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 21:56:51 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2022-07-27T21:56:51Z</dc:date>
    <item>
      <title>JMP &gt; JSL &gt; Response Screening &gt; Populate columns from Column Selection?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527319#M75117</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;JMP 16.1 / Windows 10 Pro&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I have an apparently simple problem that I cannot resolve. In the following script (which does not work), I am attempting to pass a List of columns into the X variables from the RESPONSE SCREENING platform. Using a concatenated string variable does not work. Hence, how do I convert the Column List (scol) into a valid argument for running the RESPONSE SCREENING platform?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dt = Data table ("MYTABLE");

scol = dt &amp;lt;&amp;lt; Get Selected Columns;

rse = expr (dt &amp;lt;&amp;lt; Response Screening(Y(:RESPONSE), X(_Xs_), PValues Table on Launch(0)));

X_string = "";

for (i = 1, i &amp;lt;= N Items (scol), i++,
	
	Insert into (X_string, scol [i]);
	if (i &amp;lt; N items (scol), Insert into (X_string, ","), Continue ());
	
);

show (X_string); // The column names are stripped of the preceding quotes and following n (my column names are complex and include special characters)


rsx = substitute (Name Expr (rse), Expr (_Xs_),X_string);

show (rsx);

rs = Eval (rsx); //Fails because of Bad X argument

rsr = Report (rs);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NOTES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This what the correct syntax should look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Response Screening(
	Y( :RESPONSE ),
	X(
		:"X1_MOLECULE A [M_ID 001]"n, :"X2_MOLECULE B [M_ID 002]"n,
		:"X3_MOLECULE A [M_ID 0056]"n
	),
	PValues Table on Launch( 0 )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:05:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527319#M75117</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-06-09T17:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: JMP &gt; JSL &gt; Response Screening &gt; Populate columns from Column Selection?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527330#M75118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;&amp;nbsp;, I think this should work:&lt;/P&gt;
&lt;P&gt;BR, Georg&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Current Data Table();

col_sel = dt &amp;lt;&amp;lt; get selected columns();
dt &amp;lt;&amp;lt; response screening( y( Response ), x( Eval( col_sel ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:53:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527330#M75118</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-07-27T21:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: JMP &gt; JSL &gt; Response Screening &gt; Populate columns from Column Selection?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527337#M75119</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9474"&gt;@Georg&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks. I knew it must be simple. Lessons learned: do not over-complicate things.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:56:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-gt-JSL-gt-Response-Screening-gt-Populate-columns-from-Column/m-p/527337#M75119</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2022-07-27T21:56:51Z</dc:date>
    </item>
  </channel>
</rss>

