<?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: Is there a way to create analyses that can then be applied to different datasets? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/45939#M26186</link>
    <description>&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for this helpful post. I am wondering, is there a way to annotate the script in the&amp;nbsp;script window without disrupting the code (as you would in R with #)?&lt;/P&gt;&lt;P&gt;I don't do JSL, so it&amp;nbsp;would be easier to note the type of analyses as I perform them so that I don't have to&amp;nbsp;decipher lots of code later.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2017 20:44:07 GMT</pubDate>
    <dc:creator>jennifer_n_blak</dc:creator>
    <dc:date>2017-10-13T20:44:07Z</dc:date>
    <item>
      <title>Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8659#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do the same multiple analyses on different data files.&amp;nbsp; Is there a way to create the analyses using one data file and then apply to different ones?&amp;nbsp; I hate having to repeat the same process all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 17:50:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8659#M8652</guid>
      <dc:creator>bhweinermd</dc:creator>
      <dc:date>2014-06-04T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8660#M8653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely! With JMP scripting you can save the analyses you perform on the first dataset and then run the script on any new data you might have. To save a script first you need to perform the analysis, and then select the top-most red triangle, go to script, and select "Save Script to Script Window." This will save everything you did to create the analysis and any customizations you might have made on the output. You can perform many analyses and save the scripts to the same script window -- this way you can have a single script that will run all the analyses you need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script you save is not dataset specific (which means you can open a different dataset and run the script), but the script will reference the specific columns you recruited for the analysis. Do all your datasets have the same column names? If so, there's nothing more you need to do! Just save all the scripts you need and then open a new dataset and run the script (control-R on PC, command-R on a mac).&amp;nbsp;&amp;nbsp; If your datasets have different column names you have a few options: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Rename your columns to match the original dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Use Find-and-replace to swap out the referenced column names in your script for each dataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Modify your script to prompt you for which columns to use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This final option is probably the most powerful method since you can then use your script on any dataset without modification, but it does require that you learn a little JSL to design the interface. If you have some experience with programming I bet you will feel right at home with JSL, but if programming and scripting is new to you then you might want to stick with the more manual options. If you do decide that you wish to pursue the custom interface let me know and I would be happy to provide some references and guidance for creating a flexible script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2014 02:50:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8660#M8653</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2014-07-05T02:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8661#M8654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Julian gave the best option to start with.&lt;/P&gt;&lt;P&gt;the next most efficient in terms of productivity improvement vs investment is this book:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sas.com/store/books/categories/usage-and-reference/jump-into-jmp-scripting/prodBK_61733_en.html" title="http://www.sas.com/store/books/categories/usage-and-reference/jump-into-jmp-scripting/prodBK_61733_en.html"&gt;http://www.sas.com/store/books/categories/usage-and-reference/jump-into-jmp-scripting/prodBK_61733_en.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will upgrade your productivity after just a little reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2014 10:46:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8661#M8654</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2014-07-05T10:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8662#M8655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your explanation works well if you desire a graph or other platform output but what if you need to perform reoccurring manipulation on tables and you want to perform this task the same every time.&amp;nbsp; For example, let's say I wanted to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Paste data into JMP&lt;/P&gt;&lt;P&gt;2) Delete rows which are either blank or have key words in them which I need to filter out.&lt;/P&gt;&lt;P&gt;3) Change column type for 3 column from character to numeric&lt;/P&gt;&lt;P&gt;4) Table --&amp;gt; Summary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I'm pasting into JMP is the same format every time with the same column header names and column data types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:18:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8662#M8655</guid>
      <dc:creator>notoriousapp</dc:creator>
      <dc:date>2014-07-08T13:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8663#M8656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can all be done with JSL as well, but will require some manual coding (except for the summary table, which generates a script upon running, saved to the data table scripts under "Source"). Do you have experience with JSL scripting or general programming? If not, I would recommend reading through the JSL Scripting Guide, which is available under Help &amp;gt; Books &amp;gt; Scripting Guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get you started, here's how I would get rid of the blank rows (blank values in a column named "TEST")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #032ce4;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Current Data Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;select where&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;Test &lt;/SPAN&gt;==&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;delete rows&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;This exact same code could be used to delete rows in which a column has the keywords you wish to select for, for instance, looking for the string "Useless Data" :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #032ce4;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Current Data Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;select where&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;Test &lt;/SPAN&gt;==&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;"&lt;SPAN style="color: #011993; font-family: Courier; font-size: 12px;"&gt;Useless Data&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;delete rows&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To change a column data type, you can use the following code (this references a column named "Test")&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;dt&lt;SPAN style="color: #011993;"&gt;:Test&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Data type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; Numeric &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Set Modeling Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; Continuous &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993; font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:23:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/8663#M8656</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2014-07-08T17:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/45939#M26186</link>
      <description>&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for this helpful post. I am wondering, is there a way to annotate the script in the&amp;nbsp;script window without disrupting the code (as you would in R with #)?&lt;/P&gt;&lt;P&gt;I don't do JSL, so it&amp;nbsp;would be easier to note the type of analyses as I perform them so that I don't have to&amp;nbsp;decipher lots of code later.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:44:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/45939#M26186</guid>
      <dc:creator>jennifer_n_blak</dc:creator>
      <dc:date>2017-10-13T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/45951#M26196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/358"&gt;@jennifer_n_blak&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Absolutely! The syntax for a comment in JSL is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// this is a single line comment

/*
This
is a 
multi-line 
comment
*/ 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Julian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2017 16:25:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/45951#M26196</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2017-10-14T16:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to create analyses that can then be applied to different datasets?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/46026#M26245</link>
      <description>&lt;P&gt;Thank you, Julian! That is most helpful!&lt;BR /&gt;Jennifer&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 22:01:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-create-analyses-that-can-then-be-applied-to/m-p/46026#M26245</guid>
      <dc:creator>jennifer_n_blak</dc:creator>
      <dc:date>2017-10-16T22:01:09Z</dc:date>
    </item>
  </channel>
</rss>

