<?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: Automate importing files in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688690#M87455</link>
    <description>&lt;P&gt;It might be easier to import the whole file and perform the data cleanup in JMP after the import (of course depending on your data).&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 14:49:49 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-10-19T14:49:49Z</dc:date>
    <item>
      <title>Automate importing files</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688672#M87453</link>
      <description>&lt;P&gt;I have imported an excel file using workflow and am editing the script to be more general. Within the import settings under Column names starts is a specific number but instead I want it to be when a specific condition is met (e.g. when row 5 column 2 says START with start being the column name).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help in the right direction is very appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The snippet of code is below with the important function in bold:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Import Settings(
	End Of Line( CRLF, CR, LF ),
	End Of Field( Comma, CSV( 0 ) ),
	Strip Quotes( 1 ),
	Use Apostrophe as Quotation Mark( 0 ),
	Use Regional Settings( 0 ),
	Scan Whole File( 1 ),
	Treat empty columns as numeric( 0 ),
	CompressNumericColumns( 0 ),
	CompressCharacterColumns( 0 ),
	CompressAllowListCheck( 0 ),
	Labels( 1 ),
	Column Names Start( 263 ),
	First Named Column( 1 ),
	Data Starts( 264 ),
	Lines To Read( "All" ),
	Year Rule( "20xx" )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Oct 2023 16:17:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688672#M87453</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-10-19T16:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automate importing files</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688690#M87455</link>
      <description>&lt;P&gt;It might be easier to import the whole file and perform the data cleanup in JMP after the import (of course depending on your data).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 14:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688690#M87455</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-19T14:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automate importing files</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688727#M87461</link>
      <description>&lt;P&gt;Here is some pseudo code that might give you a leg up on a possible methodology to use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open(&amp;lt;Excel File&amp;gt;);

// Get the first row where the second column has the word START
headerRow = dt &amp;lt;&amp;lt; get rows where( contains( as column(2), "START" )[1];
dataRow = headerRow + 1;

// Close the data table
close(dt, nosave);

// Substitute into the full Excel Import Settings the the header row number and 
// the data row number and run the code
Eval(
	Substitute(
		Expr(
dt = Open(.........
	Column Names Start( _H_ ),
	First Named Column( 1 ),
	Data Starts( _S_ ),
	......................);
		
		),
	expr( _H_ ), headerRow,
	expr( _S_ ), dataRow
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 16:36:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-importing-files/m-p/688727#M87461</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-19T16:36:55Z</dc:date>
    </item>
  </channel>
</rss>

