<?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 Script template for creating jrp files from csv in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10334#M10025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi guys&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am new to JMP Pro and to its scripting language, as well as to those SAS forums.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you think that I post my question in the wrong place - let me know and please excuse me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;My goal&lt;/STRONG&gt; is to create a script that will:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;open CSV file&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create variability chart based on table from this file&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;save the result as JRP file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; some details&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CSV file might be huge in row number. This file starts with line of column names. Lets assume that the complete path to this file is "&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;PathToCSV&lt;/STRONG&gt;".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I have a script that creates variability chart that I need. Lets assume that the text of this script is "&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ChartScript&lt;/STRONG&gt;".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;As a result I want to get a .JRP file that will contain both data from CSV file and chart, lets assume that the path to desired JRP file is "&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DesiredReportPath&lt;/STRONG&gt;".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I know that column names in my script that creates chart are correct and those columns are present indeed in CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;More details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Actually I am writing some C# application that automates the process of test log parsing. It does a lot of (irrelevant for JMP) things.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We have some environment that creates a lot of csv files with know schemes.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We have some specialists that know to open those files in JMP Pro and to create the charts that they need.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So those people can give me precise scripts for those charts. They have different charts for different schemes of CSV.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am merging those csv with same schemes in my app, and then I want to use JMP interop to run the script that I want to construct.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I will run the different script for each merged CSV file. So I need to create a template for the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Question&lt;/STRONG&gt;: What would be the script to do what I want?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I assume that it has the following construction:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;X1 PathToCSV X2 &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ChartScript X3 &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DesiredReportPath&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Where X1 opens CSV file and creates some data table,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;X2 opens new tab(?) for chart and creates it&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;X3 saves all work to desired path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Artem;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 05:38:43 GMT</pubDate>
    <dc:creator>artem_verbuk</dc:creator>
    <dc:date>2014-12-09T05:38:43Z</dc:date>
    <item>
      <title>Script template for creating jrp files from csv</title>
      <link>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10334#M10025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi guys&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am new to JMP Pro and to its scripting language, as well as to those SAS forums.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you think that I post my question in the wrong place - let me know and please excuse me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;My goal&lt;/STRONG&gt; is to create a script that will:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;open CSV file&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create variability chart based on table from this file&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;save the result as JRP file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; some details&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CSV file might be huge in row number. This file starts with line of column names. Lets assume that the complete path to this file is "&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;PathToCSV&lt;/STRONG&gt;".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I have a script that creates variability chart that I need. Lets assume that the text of this script is "&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ChartScript&lt;/STRONG&gt;".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;As a result I want to get a .JRP file that will contain both data from CSV file and chart, lets assume that the path to desired JRP file is "&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DesiredReportPath&lt;/STRONG&gt;".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I know that column names in my script that creates chart are correct and those columns are present indeed in CSV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;More details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Actually I am writing some C# application that automates the process of test log parsing. It does a lot of (irrelevant for JMP) things.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We have some environment that creates a lot of csv files with know schemes.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We have some specialists that know to open those files in JMP Pro and to create the charts that they need.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So those people can give me precise scripts for those charts. They have different charts for different schemes of CSV.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am merging those csv with same schemes in my app, and then I want to use JMP interop to run the script that I want to construct.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I will run the different script for each merged CSV file. So I need to create a template for the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Question&lt;/STRONG&gt;: What would be the script to do what I want?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I assume that it has the following construction:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;X1 PathToCSV X2 &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ChartScript X3 &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DesiredReportPath&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Where X1 opens CSV file and creates some data table,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;X2 opens new tab(?) for chart and creates it&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;X3 saves all work to desired path&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Artem;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 05:38:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10334#M10025</guid>
      <dc:creator>artem_verbuk</dc:creator>
      <dc:date>2014-12-09T05:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script template for creating jrp files from csv</title>
      <link>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10335#M10026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect this answer is a gross over simplification, but just opening a CSV (assuming the data is well structured) generating a report (JMP calls output reports), journaling the result and saving the journal isn't terribly complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JMP writes most of this for you. Just capture the scripts from the Source script in the opened file, and the report script from the variability report. Formatting the CSV prior to opening it in JMP is the hard part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Byron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example: (past this in a JMP script window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;path=get default directory();//gets dir of where this script is saved&lt;/P&gt;&lt;P&gt;//JMP writes this statement when it opens the file. Check the Source script in a JMP table from a CSV&lt;/P&gt;&lt;P&gt;dt=Open(&lt;/P&gt;&lt;P&gt;&amp;nbsp; "C:\Program Files\SAS\JMPPRO\11\Samples\Import Data\Book1.csv",&lt;/P&gt;&lt;P&gt;// this file might be at a different location on your installation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; columns(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( "1", Numeric, nominal, Format( "Best", 10 ) ),//I made this col nominal for the example&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( "2", Numeric, nominal, Format( "Best", 10 ) ),//I made this col nominal for the example&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( "3", Numeric, Continuous, Format( "Best", 10 ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Import Settings(&lt;/P&gt;&lt;P&gt;&amp;nbsp; End Of Line( CRLF, CR, LF ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; End Of Field( Comma, CSV( 1 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Strip Quotes( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Use Apostrophe as Quotation Mark( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Scan Whole File( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Treat empty columns as numeric( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; CompressNumericColumns( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; CompressCharacterColumns( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; CompressAllowListCheck( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Labels( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column Names Start( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data Starts( 2 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Lines To Read( "All" ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year Rule( "20xx" )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;//jmp wrote the script for this variability chart. Just copy the script from the report&lt;/P&gt;&lt;P&gt;vc=dt&amp;lt;&amp;lt;Variability Chart(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Y( :Name( "3" ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; X( :Name( "1" ), :Name( "2" ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max Iter( 100 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Conv Limit( 0.00000001 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Number Integration Abscissas( 128 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Number Function Evals( 65536 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Std Dev Chart( 0 )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jvs=vc&amp;lt;&amp;lt;journal ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//save the journal "jvs" to path, concatinated to, the file name&lt;/P&gt;&lt;P&gt;jvs &amp;lt;&amp;lt; save journal( path || "testJRN.jrn" );&lt;/P&gt;&lt;P&gt;//or other convenient file types&lt;/P&gt;&lt;P&gt;jvs &amp;lt;&amp;lt; save pdf( path || "testPDF.pdf" );&lt;/P&gt;&lt;P&gt;jvs &amp;lt;&amp;lt; save picture( path || "testPNG.png", png );&lt;/P&gt;&lt;P&gt;jvs &amp;lt;&amp;lt; Save Interactive HTML( path || "testHTML.htm" );&lt;/P&gt;&lt;P&gt;jvs &amp;lt;&amp;lt; Save MSWord( path || "testDOC.doc" );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 19:27:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10335#M10026</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2014-12-09T19:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script template for creating jrp files from csv</title>
      <link>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10336#M10027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, Byron!&lt;/P&gt;&lt;P&gt;The script you gave is almost what I need. &lt;/P&gt;&lt;P&gt;However, there are some things that I miss/don't understand.&lt;/P&gt;&lt;P&gt;I think that I have a problem with the following two lines:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;jvs=vc&amp;lt;&amp;lt;journal ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;jvs &amp;lt;&amp;lt; save journal( "C:/testJRN.jrn" );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;First of all - are they connected? Meaning, if I want to save only an image of the variability chart, should I still have the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;jvs=vc&amp;lt;&amp;lt;journal ;&lt;/SPAN&gt;" line in my template?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And I know for sure, that I will need only two options (So I need two templates, or template with additional parameter):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1 - Save image of created chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2 - Save something that &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;contains all data from CSV&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;contains the created chart&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;allows further working with two above&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So, the journal is the correct option for the second? Or "report"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;May be the last string should be something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;jsv&amp;lt;&amp;lt; save report("C:/testReport.jrp");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Artem&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 14:43:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10336#M10027</guid>
      <dc:creator>artem_verbuk</dc:creator>
      <dc:date>2014-12-16T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script template for creating jrp files from csv</title>
      <link>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10337#M10028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case vc is the variability chart, its the variable (handle) for addressing the report window.&lt;/P&gt;&lt;P&gt;vc&amp;lt;&amp;lt;journal,&amp;nbsp; simply journals the report window. &lt;/P&gt;&lt;P&gt;In the example I saved the journal "jvs" as several file types. We could have just saved "vc" as one of those file types.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Sending multiple reports to a journal and then saving the journal is convenient when I don't want to spend any time building a prettier report window, e.g. application builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is so much flexibility with JSL that you can really build almost anything you can imagine. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:06:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-template-for-creating-jrp-files-from-csv/m-p/10337#M10028</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2014-12-18T15:06:01Z</dc:date>
    </item>
  </channel>
</rss>

