<?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: Scripting: Open table and closing it in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230504#M45714</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16518"&gt;@JL_LZH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think you have a small&amp;nbsp;parentheses issue, try the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open(
	"I:\myfile.xlsx",
	Worksheets( "mydata" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	)
);
Wait( 0.1 );
Close( dt );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 09:24:12 GMT</pubDate>
    <dc:creator>ron_horne</dc:creator>
    <dc:date>2019-10-24T09:24:12Z</dc:date>
    <item>
      <title>Scripting: Open table and closing it</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230500#M45713</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm new to scripting in JSL and it seems like I'm struggling right from the start..&lt;/P&gt;&lt;P&gt;I want to import an Excel table and then do several changes and so on. But it seems like the easiest operations doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea was to start really simple: opening and closing it. I imported my Excel table with the wizard and saved the script. I altered it to the following (added a variable dt and tried closing the table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open(
	"I:\myfile.xlsx",
	Worksheets( "mydata" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	);
Close (dt);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It opens the table but it's not closing. What am I doing wrong?&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:10:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230500#M45713</guid>
      <dc:creator>JL_LZH</dc:creator>
      <dc:date>2019-10-24T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Open table and closing it</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230504#M45714</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16518"&gt;@JL_LZH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i think you have a small&amp;nbsp;parentheses issue, try the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open(
	"I:\myfile.xlsx",
	Worksheets( "mydata" ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	)
);
Wait( 0.1 );
Close( dt );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:24:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230504#M45714</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-10-24T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting: Open table and closing it</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230508#M45715</link>
      <description>Perfect, thanks for the quick reply!&lt;BR /&gt;I thought I need the parantathese to end the script.... lesson learned.</description>
      <pubDate>Thu, 24 Oct 2019 09:27:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-Open-table-and-closing-it/m-p/230508#M45715</guid>
      <dc:creator>JL_LZH</dc:creator>
      <dc:date>2019-10-24T09:27:21Z</dc:date>
    </item>
  </channel>
</rss>

