<?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: How do I script Tabulating a document and then saving that Tabulated data into a Data table on my hard drive? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213109#M42643</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;I am still not seeing a data2.jmp created with the script below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "C:\Users\juvelj1\Desktop\Data 2014-2019\Products_2014.jmp", invisible );
tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :Code LLT ) ),
		Row Table( Grouping Columns( :CodeTypePrmaryAndDesc 3, :CodeTypePrmaryAndDesc 4 ) )
	)
);
dt_tab = tab &amp;lt;&amp;lt; Make Into Data Table;
dt_tab &amp;lt;&amp;lt; set name( "Tabulate" );
dt_tab &amp;lt;&amp;lt; Save( "C:\Users\juvelj1\Desktop\Data 2014-2019\Data2.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Jun 2019 15:07:06 GMT</pubDate>
    <dc:creator>zjuv007</dc:creator>
    <dc:date>2019-06-14T15:07:06Z</dc:date>
    <item>
      <title>How do I script Tabulating a document and then saving that Tabulated data into a Data table on my hard drive?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213083#M42639</link>
      <description>&lt;P&gt;I would like to tabulate some data from document 'Data1', make this tabulated data into a new data table, and then save the new data as document 'Data2', here is my first high level stab at this and doesn't seem to work, any quick guidance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "Data1.jmp", invisible );
(Data Table( "Data1" ) &amp;lt;&amp;lt; tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :Code LLT ) ),
		Row Table( Grouping Columns( :CodeTypePrmaryAndDesc 3, :CodeTypePrmaryAndDesc 4 ) )
	)
));
dt_tab &amp;lt;&amp;lt; Make Into Data Table
dt_tab &amp;lt;&amp;lt; set name( "Tabulate" );

dt_tab &amp;lt;&amp;lt; Save( "Data2.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:15:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213083#M42639</guid>
      <dc:creator>zjuv007</dc:creator>
      <dc:date>2019-06-14T14:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Tabulating a document and then saving that Tabulated data into a Data table on my hard drive?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213094#M42641</link>
      <description>&lt;P&gt;Below is a working version modification of your code.&amp;nbsp; Given the issues in your original code, I suggest that you spend some time reading the JSL documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;Also, in the code below, in your Save() function, you do not specify a path to where you want to save the data.&amp;nbsp; You may need to specify a fully qualified path, in order to be able to save the table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "Data1.jmp", invisible );
tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :Code LLT ) ),
		Row Table( Grouping Columns( :CodeTypePrmaryAndDesc 3, :CodeTypePrmaryAndDesc 4 ) )
	)
);
dt_tab = tab &amp;lt;&amp;lt; Make Into Data Table;
dt_tab &amp;lt;&amp;lt; set name( "Tabulate" );
dt_tab &amp;lt;&amp;lt; Save( "Data2.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:29:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213094#M42641</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-14T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Tabulating a document and then saving that Tabulated data into a Data table on my hard drive?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213109#M42643</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;I am still not seeing a data2.jmp created with the script below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "C:\Users\juvelj1\Desktop\Data 2014-2019\Products_2014.jmp", invisible );
tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :Code LLT ) ),
		Row Table( Grouping Columns( :CodeTypePrmaryAndDesc 3, :CodeTypePrmaryAndDesc 4 ) )
	)
);
dt_tab = tab &amp;lt;&amp;lt; Make Into Data Table;
dt_tab &amp;lt;&amp;lt; set name( "Tabulate" );
dt_tab &amp;lt;&amp;lt; Save( "C:\Users\juvelj1\Desktop\Data 2014-2019\Data2.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:07:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213109#M42643</guid>
      <dc:creator>zjuv007</dc:creator>
      <dc:date>2019-06-14T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Tabulating a document and then saving that Tabulated data into a Data table on my hard drive?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213110#M42644</link>
      <description>&lt;P&gt;What messages are in your JMP Log?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:55:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213110#M42644</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-14T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I script Tabulating a document and then saving that Tabulated data into a Data table on my hard drive?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213112#M42645</link>
      <description>Clearing up my JMP code has resolved this issue and your modified code has worked.&lt;BR /&gt;&lt;BR /&gt;Thanks Jim!</description>
      <pubDate>Fri, 14 Jun 2019 15:32:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-script-Tabulating-a-document-and-then-saving-that/m-p/213112#M42645</guid>
      <dc:creator>zjuv007</dc:creator>
      <dc:date>2019-06-14T15:32:47Z</dc:date>
    </item>
  </channel>
</rss>

