<?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: Send analysis to journal, and then save PDF in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14801#M13769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was even able to save as Landscape, which fixed the Phased Limits presentation &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.jmp.com/7.0.4.3b79b96/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2015 16:23:20 GMT</pubDate>
    <dc:creator>jb</dc:creator>
    <dc:date>2015-10-13T16:23:20Z</dc:date>
    <item>
      <title>JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14796#M13764</link>
      <description>&lt;P&gt;Hello, I've scripted JSL to create a control chart analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to send the analysis to a journal, and then save the journal as a PDF file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the last line of code that isn't working:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; jrn &amp;lt;&amp;lt; Save PDF( "C:\test.pdf");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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 = Open( "$SAMPLE_DATA/Quality Control/Diameter.jmp" );
dt &amp;lt;&amp;lt; New Column ( "LOT", Character( 1 ), Nominal, Set Values( {
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B"
  } )
);
cchart = Control Chart( Sample Label(:DAY),Phase(:LOT),Group Size(1),KSigma(3),
  Chart Col( :DIAMETER,
    Individual Measurement(
      Phase Level( "A", LCL( 3.49 ), Avg( 4.36 ), UCL( 5.23 ) ),
      Phase Level( "B", LCL( 3.46 ), Avg( 4.32 ), UCL( 5.18 ) )
    )
  ),
  SendToReport(
    Dispatch(
      {"Individual Measurement of DIAMETER"},
      "IR Chart of IM",FrameBox,
      {Row Legend( MACHINE,Color(1),Color Theme("JMP Default") )}
    )
  ),
  Where( :OPERATOR == "RMM" )
);
jrn = New Window( cchart &amp;lt;&amp;lt; Journal );
jrn &amp;lt;&amp;lt; Save PDF( "C:\test.pdf");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:23:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14796#M13764</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2018-06-21T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14797#M13765</link>
      <description>&lt;P&gt;2 things:&lt;/P&gt;
&lt;P&gt;1. Somehow it would not save the file in "C:" for me.&lt;/P&gt;
&lt;P&gt;2. &lt;SPAN style="font-family: 'courier new', courier;"&gt;Save PDF&lt;/SPAN&gt; works for reports but not for journals, as it seems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open( "$SAMPLE_DATA/Quality Control/Diameter.jmp" );
dt &amp;lt;&amp;lt; New Column ( "LOT", Character( 1 ), Nominal, Set Values( {
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B",
  "B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B","B"
  } )
);
cchart = Control Chart( Sample Label(:DAY),Phase(:LOT),Group Size(1),KSigma(3),
  Chart Col( :DIAMETER,
    Individual Measurement(
      Phase Level( "A", LCL( 3.49 ), Avg( 4.36 ), UCL( 5.23 ) ),
      Phase Level( "B", LCL( 3.46 ), Avg( 4.32 ), UCL( 5.18 ) )
    )
  ),
  SendToReport(
    Dispatch(
      {"Individual Measurement of DIAMETER"},
      "IR Chart of IM",FrameBox,
      {Row Legend( MACHINE,Color(1),Color Theme("JMP Default") )}
    )
  ),
  Where( :OPERATOR == "RMM" )
);
 
jrn = cchart &amp;lt;&amp;lt; Report;
jrn &amp;lt;&amp;lt; Save PDF( "C:\Users\USERNAME\Desktop\test.pdf");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:31:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14797#M13765</guid>
      <dc:creator>shoffmeister</dc:creator>
      <dc:date>2018-06-21T20:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14798#M13766</link>
      <description>&lt;P&gt;I don't have the necessary privs to write to the top level of my C drive.&amp;nbsp; Also there's a flag you can include to prevent the page setup dialog from popping up.&amp;nbsp; Finally you don't need to put the journal inside a window.&amp;nbsp; Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;jrn = cchart &amp;lt;&amp;lt; Journal;
jrn &amp;lt;&amp;lt; Save PDF( "C:\temp\test1.pdf", show page setup(0));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:30:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14798#M13766</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-21T20:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14799#M13767</link>
      <description>&lt;P&gt;I had a similar issue saving to a PowerPoint file and finally stumbled across the Save Presentation command.&amp;nbsp; I run all my analyses and save them to a common journal then execute the following lines.&amp;nbsp; I define a global variable named ::fid.&amp;nbsp; Yes, I know the dangers of colliding namespaces but I'm pretty much the only one who codes in JSL at my small company.so I naively carry on in blissful ignorance...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Journal()&amp;lt;&amp;lt; Set Window Title(::fid || "Summary");
 
/* Set the title of the Journal Window */
jrn=Current Journal();
jrn&amp;lt;&amp;lt;Save Presentation( ::PathOut || ::fid ||" RDIO Summary.pptx", PNG);
jrn&amp;lt;&amp;lt;Save HTML( ::PathOut || ::fid ||"  RDIO Summary.htm", PNG);
jrn&amp;lt;&amp;lt;Close Window;
Exit(); // Closes JMP but files are saved in predetermined folders. &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just thought I'd share a similar experience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:33:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14799#M13767</guid>
      <dc:creator>DaveLee</dc:creator>
      <dc:date>2018-06-21T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14800#M13768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:21:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14800#M13768</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2015-10-13T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14801#M13769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked! Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was even able to save as Landscape, which fixed the Phased Limits presentation &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.jmp.com/7.0.4.3b79b96/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:23:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14801#M13769</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2015-10-13T16:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14802#M13770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting idea, but I wasn't able to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is &lt;STRONG&gt;::fid&lt;/STRONG&gt; used ?&amp;nbsp; Do I need to declare this global variable somewhere?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:27:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14802#M13770</guid>
      <dc:creator>jb</dc:creator>
      <dc:date>2015-10-13T16:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Send analysis to journal, and then save PDF</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14803#M13771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I define ::fid as a global variable in the very beginning of the script.&amp;nbsp; The same is true for the ::PathOut global variable. To me ::fid is just short for file ID - something I want to call the file name. I supply the file ID and pathname in the opening lines of the script then run a variety of analyses each getting saved to one journal. I end the script by setting a title for the journal, giving it a reference (i.e., jrn) and then finally save it both as a HTML and a PowerPoint.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 16:35:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Send-analysis-to-journal-and-then-save-PDF/m-p/14803#M13771</guid>
      <dc:creator>DaveLee</dc:creator>
      <dc:date>2015-10-13T16:35:34Z</dc:date>
    </item>
  </channel>
</rss>

