<?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 How to get pointer to existing Jrn file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411436#M66097</link>
    <description>&lt;P&gt;Hi -&lt;/P&gt;
&lt;P&gt;How can I open an existing journal file which is closed in a new Jmp instance and append a new journal to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote following JSL code but it is not working as expected&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw_existing = Open( "C:\Existing.jrn" );
nw = New Window( "Final", container = V List Box() );
nw &amp;lt;&amp;lt; append( nw_existing );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am unable to find a way to get&amp;nbsp;reference to &lt;EM&gt;existing&lt;/EM&gt; journal. Appreciate any pointers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2025 21:07:14 GMT</pubDate>
    <dc:creator>uProf</dc:creator>
    <dc:date>2025-06-30T21:07:14Z</dc:date>
    <item>
      <title>How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411436#M66097</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;
&lt;P&gt;How can I open an existing journal file which is closed in a new Jmp instance and append a new journal to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote following JSL code but it is not working as expected&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw_existing = Open( "C:\Existing.jrn" );
nw = New Window( "Final", container = V List Box() );
nw &amp;lt;&amp;lt; append( nw_existing );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am unable to find a way to get&amp;nbsp;reference to &lt;EM&gt;existing&lt;/EM&gt; journal. Appreciate any pointers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 21:07:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411436#M66097</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2025-06-30T21:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411476#M66100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to replicate your problem in JMP 14.1 on Windows but I cannot reproduce the issue. Indeed, upon running your short script, I end up with a JMP window entitled "Final" that contains all the elements of the Existing.jrn journal, as expected. However, it sounds like you would like to append some outputs to the Existing.jrn journal in which case, you just need to call the [analysis report xxx] &amp;lt;&amp;lt; Journal command after the Open statement.&lt;/P&gt;
&lt;P&gt;If I'm still off, could you describe in more details how your script is not yielding the expected result?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:19:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411476#M66100</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-08-20T05:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411533#M66107</link>
      <description>&lt;P&gt;Hi Thierry -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Jmp 12.2.0 on Windows. Wondering if there is a difference due to Jmp version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get empty "Final" journal with previous code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Including modified code below. Expecting two plots in "Final". Only get one&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/Big Class.jmp" );

j1 = New Window( "Journal_1",
    &amp;lt;&amp;lt;journal,
    dt &amp;lt;&amp;lt; bivariate( x( :weight ), y( :height ) )
);
Current Journal() &amp;lt;&amp;lt; save journal( "C:\logs\Existing.jrn" );
Current Journal() &amp;lt;&amp;lt; close window();

//Open closed journal
nw_existing = Open( "C:\logs\Existing.jrn" );

//Create New journal
nw2 = New Window( "Journal_2", &amp;lt;&amp;lt;journal, dt &amp;lt;&amp;lt; oneway( x( :sex ), y( :height ) ) );
Current Journal() &amp;lt;&amp;lt; save journal( "C:\logs\New.jrn" );

//create new window
nw = New Window( "Final" );

//add older jrn first, followed by recent one
nw &amp;lt;&amp;lt; append( nw_existing );
//nw &amp;lt;&amp;lt; append( Report(nw_existing)); // does not make any difference
nw &amp;lt;&amp;lt; append( nw2 );&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;I could not figure out how to incorporate your suggestion about analysis report xxx &amp;lt;&amp;lt; journal. Appreciate if you could show the usage in this code. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:49:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411533#M66107</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2021-08-20T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411537#M66108</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;One thing that comes immediately to mind is that your call to nw = New Window ("Final") should include a contained such as a V LIST BOX ().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And sorry, it looks like I inadvertently clicked on the Select as Solution which was not my intent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:58:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411537#M66108</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-08-20T13:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411540#M66109</link>
      <description>&lt;P&gt;Not sure why the question above is marked as solution now. Is there any way to remove the 'solution' tag?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 13:58:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411540#M66109</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2021-08-20T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411541#M66110</link>
      <description>&lt;P&gt;Let me look into it. Sorry for the confusion&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 14:00:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411541#M66110</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-08-20T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411723#M66123</link>
      <description>&lt;P&gt;I changed&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//create new window
nw = New Window( "Final" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;into making it a journal&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//create new window
nw = New Window( "Final",&amp;lt;&amp;lt;journal );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and both of the saved journal entries are properly copied into the new journal&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

j1 = New Window( "Journal_1",
    &amp;lt;&amp;lt;journal,
    dt &amp;lt;&amp;lt; bivariate( x( :weight ), y( :height ) )
);
Current Journal() &amp;lt;&amp;lt; save journal( "$TEMP\Existing.jrn" );
Current Journal() &amp;lt;&amp;lt; close window();

//Open closed journal
nw_existing = Open( "$TEMP\Existing.jrn" );

//Create New journal
nw2 = New Window( "Journal_2", &amp;lt;&amp;lt;journal, dt &amp;lt;&amp;lt; oneway( x( :sex ), y( :height ) ) );
Current Journal() &amp;lt;&amp;lt; save journal( "$TEMP\New.jrn" );

//create new window
nw = New Window( "Final",&amp;lt;&amp;lt;journal );

//add older jrn first, followed by recent one
nw &amp;lt;&amp;lt; append( nw_existing );
//nw &amp;lt;&amp;lt; append( Report(nw_existing)); // does not make any difference
nw &amp;lt;&amp;lt; append( nw2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1629528073561.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35228iBD6037EF3D8D6C56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1629528073561.png" alt="txnelson_0-1629528073561.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 06:44:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411723#M66123</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-21T06:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get pointer to existing Jrn file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411764#M66131</link>
      <description>&lt;P&gt;Thanks a bunch,&amp;nbsp;&lt;SPAN&gt;txnelson!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On Jmp 12.2, it did not work as is. Opening closed jrn via Open and appending new distribution to it worked.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 23:23:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-get-pointer-to-existing-Jrn-file/m-p/411764#M66131</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2021-08-21T23:23:44Z</dc:date>
    </item>
  </channel>
</rss>

