<?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: JSL automate the columns used in Process Capability in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39902#M23366</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

// Create a complex name for a column to make sure it will be
// processed correctly
dt:NPN1 &amp;lt;&amp;lt; set name( "NPN1-7/Best" );

// Get a list of columns to be used
colList = dt &amp;lt;&amp;lt; get column names( continuous, string );

ProcessFunc = Function( {TheList}, 
	// Move them into a single literal string of the format required
	// for the Process Variables element in the Process Capability
	// platform
	TheVars = ":Name(\!"" || TheList[1] || "\!")";
	For( i = 2, i &amp;lt;= 10, i++,
		TheVars = TheVars || "," || ":Name(\!"" || TheList[i] || "\!")"
	);

	// Run the Process Capability platform, using the literal
	// string "TheVars" 
	Eval(Parse("dt &amp;lt;&amp;lt; Process Capability( 
		Process Variables( "|| TheVars|| ") ) ,
		 Goal Plot( 1 ), Capability Index Plot( 1 ) 
	 );"));
);

Return = ProcessFunc( colList );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Jun 2017 17:19:03 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-06-02T17:19:03Z</dc:date>
    <item>
      <title>JSL automate the columns used in Process Capability</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39855#M23337</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;so i want to write a JSL script that can run Process Capability on the click of a button on a tool bar. i have every thing coded except for Process Variables. see code below. how will i be able to dynamically add the columns in "process variables()"&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;func_Process_Cap = Function({summ_table,spec_table},
	// local vars
	{},

	Process Capability(
		Process Variables( // hard coded - not ideal
			:Name( "column1" ), //some columns are preseeded by :name()
			:column2		   // some are not
		),
		Spec Limits(
			Import Spec Limits(spec_table) // dynamic
		),
		Individual Detail Reports( 1 ),
		Capability Box Plots( 0 ),
		Overall Sigma Summary Report( 1 ),
		Goal Plot( 0 ),
		Capability Index Plot( 0 ),
		Order By( "Overall Sigma Ppk Ascending" ),
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jun 2017 22:25:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39855#M23337</guid>
      <dc:creator>jay_S</dc:creator>
      <dc:date>2017-06-01T22:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSL automate the columns used in Process Capability</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39871#M23345</link>
      <description>&lt;P&gt;I am not quite sure if the script (see below) I wrote will give you a possible direction in where you want to go. &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

// Create a complex name for a column to make sure it will be
// processed correctly
dt:NPN1 &amp;lt;&amp;lt; set name( "NPN1-7/Best" );

// Get a list of columns to be used
colList = dt &amp;lt;&amp;lt; get column names( continuous, string );

ProcessFunc = Function( {TheList}, 
	// Move them into a single literal string of the format required
	// for the Process Variables element in the Process Capability
	// platform
	TheVars = ":Name(\!"" || TheList[1] || "\!")";
	For( i = 2, i &amp;lt;= N Items( TheList ), i++,
		TheVars = TheVars || "," || ":Name(\!"" || TheList[i] || "\!")"
	);

	// Run the Process Capability platform, using the literal
	// string "TheVars" 
	dt &amp;lt;&amp;lt; Process Capability( 
		Process Variables( Eval( Parse( TheVars ) ) ),
		 Goal Plot( 1 ), Capability Index Plot( 1 ) 
	 );
);

Return = ProcessFunc( colList );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:23:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39871#M23345</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-02T09:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSL automate the columns used in Process Capability</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39900#M23364</link>
      <description>&lt;P&gt;its a good start but it only accepts the 1st column. i made a dummy data table ,(column1,column2,column3), and modiefied the how the string looked to match the script i saved of the anlysis on the dummy data and it still only accepts the first column. will try different methods and if i find anything will report back!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:06:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39900#M23364</guid>
      <dc:creator>jay_S</dc:creator>
      <dc:date>2017-06-02T17:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: JSL automate the columns used in Process Capability</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39902#M23366</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

// Create a complex name for a column to make sure it will be
// processed correctly
dt:NPN1 &amp;lt;&amp;lt; set name( "NPN1-7/Best" );

// Get a list of columns to be used
colList = dt &amp;lt;&amp;lt; get column names( continuous, string );

ProcessFunc = Function( {TheList}, 
	// Move them into a single literal string of the format required
	// for the Process Variables element in the Process Capability
	// platform
	TheVars = ":Name(\!"" || TheList[1] || "\!")";
	For( i = 2, i &amp;lt;= 10, i++,
		TheVars = TheVars || "," || ":Name(\!"" || TheList[i] || "\!")"
	);

	// Run the Process Capability platform, using the literal
	// string "TheVars" 
	Eval(Parse("dt &amp;lt;&amp;lt; Process Capability( 
		Process Variables( "|| TheVars|| ") ) ,
		 Goal Plot( 1 ), Capability Index Plot( 1 ) 
	 );"));
);

Return = ProcessFunc( colList );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:19:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39902#M23366</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-02T17:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSL automate the columns used in Process Capability</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39907#M23367</link>
      <description>works great! i added pcVar = Eval(.... to the script and i am able to send commands to the window so pcVar &amp;lt;&amp;lt; Goal Plot(0); for further customization. for the people who see this in the future!&lt;BR /&gt;&lt;BR /&gt;pcVar =Eval(Parse("dt &amp;lt;&amp;lt; Process Capability(&lt;BR /&gt;Process Variables( "|| TheVars|| ") ) ,&lt;BR /&gt;&lt;BR /&gt;);"));&lt;BR /&gt;pcVar &amp;lt;&amp;lt;Order By( "Overall Sigma Ppk Ascending" );&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jun 2017 18:15:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-automate-the-columns-used-in-Process-Capability/m-p/39907#M23367</guid>
      <dc:creator>jay_S</dc:creator>
      <dc:date>2017-06-02T18:15:40Z</dc:date>
    </item>
  </channel>
</rss>

