<?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: Open closed file and append in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411930#M66149</link>
    <description>Hello Ih-&lt;BR /&gt;&lt;BR /&gt;Last line of code is not working as expected in Jmp 12.&lt;BR /&gt;&lt;BR /&gt;There is no error message in the log either when last line is executed.</description>
    <pubDate>Mon, 23 Aug 2021 13:24:17 GMT</pubDate>
    <dc:creator>uProf</dc:creator>
    <dc:date>2021-08-23T13:24:17Z</dc:date>
    <item>
      <title>Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411636#M66118</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to open closed Journal file and append to it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:55:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411636#M66118</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2023-06-09T19:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411739#M66125</link>
      <description>&lt;P&gt;Here is the method that I used to solve this issue in your previous discussion entry&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;</description>
      <pubDate>Sat, 21 Aug 2021 14:51:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411739#M66125</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-21T14:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411850#M66145</link>
      <description>&lt;P&gt;I took this a step further to append each jrn file as a &lt;STRONG&gt;tab&lt;/STRONG&gt; in a consolidated journal file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shown below is modified code that works in Jmp 14.3.0 but &lt;STRONG&gt;not&lt;/STRONG&gt; in Jmp 12.2.0.&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( "$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", tbox = Tab Box() );

//add New jrn first, followed by Existing
tbox &amp;lt;&amp;lt; Append ("New", vlb = Panel Box());
vlb &amp;lt;&amp;lt; Append( nw2 );
tbox &amp;lt;&amp;lt; Append ("Existing", vlb = Panel Box());
vlb &amp;lt;&amp;lt; Append( nw_existing );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Output from Jmp 12.2.0 included below. New tab is populated but Existing tab does not have the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="U.png" style="width: 480px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35238i02C1CC6F88C8E5E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="U.png" alt="U.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am limited to usage of Jmp 12.2.0 so would like to figure out a way to get this working. Appreciate help and pointers.&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 00:01:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411850#M66145</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2021-08-23T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411885#M66147</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/30699"&gt;@uProf&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you step through your code, running one line at a time, in 12.2, what line does not do what you expect it to?&amp;nbsp; For example does the the existing journal open and contain everything you expect it to? Doing that bit of troubleshooting will lead you to a more specific question and get you to a solution faster.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 11:33:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411885#M66147</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-08-23T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411930#M66149</link>
      <description>Hello Ih-&lt;BR /&gt;&lt;BR /&gt;Last line of code is not working as expected in Jmp 12.&lt;BR /&gt;&lt;BR /&gt;There is no error message in the log either when last line is executed.</description>
      <pubDate>Mon, 23 Aug 2021 13:24:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/411930#M66149</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2021-08-23T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/412070#M66163</link>
      <description>&lt;P&gt;I no longer have JMP 12 so I can't test anything here.&amp;nbsp; Can you append other things to the new tab, like the oneway report itself, instead of trying to append another journal?&amp;nbsp; If so you might be able to do something like this:&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" );

//Save the first journal with a tab box already in it
j1 = New Window( "Journal_1", &amp;lt;&amp;lt;journal, tbox = Tab Box() );
tbox &amp;lt;&amp;lt; Append ("1", vlb = Panel Box());
vlb &amp;lt;&amp;lt; Append( dt &amp;lt;&amp;lt; bivariate( x( :weight ), y( :height ) ) );   
j1 &amp;lt;&amp;lt; save journal( "$TEMP\Existing.jrn" );
j1 &amp;lt;&amp;lt; close window();

//Open closed journal
nw_existing = Open( "$TEMP\Existing.jrn" );

//Find tab list box
tbox = (nw_existing &amp;lt;&amp;lt; XPath("//TabListBox"))[1];

//get tab names
Tabs = (nw_existing &amp;lt;&amp;lt; XPath("//TabPageBox"));

//get next name
newTabNum = num(Tabs[n Items(Tabs)] &amp;lt;&amp;lt; Get Title) + 1;

//Add a tab
tbox &amp;lt;&amp;lt; Append (char(newTabNum), vlb = Panel Box());

//Add content to tab
vlb&amp;lt;&amp;lt; Append( dt &amp;lt;&amp;lt; oneway( x( :sex ), y( :height ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 02:22:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/412070#M66163</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-08-24T02:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/412072#M66165</link>
      <description>&lt;P&gt;Early versions of JMP that had panel boxes and tab boxes had issues with them.&amp;nbsp; I have tried several old tricks to try to get the code to work, but have failed to resolve the issue.&amp;nbsp; Sorry.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:04:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/412072#M66165</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-24T03:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Open closed file and append</title>
      <link>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/413044#M66280</link>
      <description>&lt;P&gt;Appreciate your help, Ih!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified your script a bit to get the following working in Jmp 12.2 to append in closed journal.&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" );

//Save the first journal with a tab box already in it
j1 = New Window( "Journal_1", &amp;lt;&amp;lt;journal, tbox = Tab Box() );
tbox &amp;lt;&amp;lt; Append ("1", vlb = Panel Box());
vlb &amp;lt;&amp;lt; Append( dt &amp;lt;&amp;lt; bivariate( x( :weight ), y( :height ) ) );   
j1 &amp;lt;&amp;lt; save journal( "$TEMP\Existing.jrn" );
j1 &amp;lt;&amp;lt; close window();

//Open closed journal
nw_existing = Open( "$TEMP\Existing.jrn" );
tb = (nw_existing &amp;lt;&amp;lt; XPath("//TabListBox"))[1];
tb &amp;lt;&amp;lt; Append("2",vlb2 = Panel Box());
vlb2&amp;lt;&amp;lt; Append( dt &amp;lt;&amp;lt; oneway( x( :sex ), y( :height ) ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Aug 2021 22:19:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-closed-file-and-append/m-p/413044#M66280</guid>
      <dc:creator>uProf</dc:creator>
      <dc:date>2021-08-26T22:19:39Z</dc:date>
    </item>
  </channel>
</rss>

