<?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: Looking to bypass or accept duplicate files in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568996#M77959</link>
    <description>&lt;P&gt;It looks to me like your second if statement needs work, maybe something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	N Items(lotFiles) == 1, CalibrationTable = lotFiles[1],
	N Items(lotFiles) &amp;gt; 1,
		CalibrationTable = lotFiles[1];
		For(i = 2, i &amp;lt;= N Items(lotFiles), i++,
			 CalibrationTable &amp;lt;&amp;lt; concatenate(lotFiles[i], create source column);
			 Close(lotFiles[i], nosave)
		);,
	N Items(lotFiles) == 0,
		Print("no lot data, please try again");
		Return(0);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Nov 2022 14:01:45 GMT</pubDate>
    <dc:creator>pauldeen</dc:creator>
    <dc:date>2022-11-14T14:01:45Z</dc:date>
    <item>
      <title>Looking to bypass or accept duplicate files</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568770#M77941</link>
      <description>&lt;P&gt;I'm currently writing code to pull the files with the same ending into one concatenated file. I'm noticing that when it gets to a duplicate file, the code breaks. Is there a way I could code this to accept the duplicate file as well? I know it may be as simple as renaming the file, but I wanted to reach out for answers first.&amp;nbsp;&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;If(
	N Items(lotFiles) == 1, CalibrationTable = lotFiles[1],
	N Items(lotFiles) &amp;gt; 1,
		CalibrationTable = lotFiles[1] &amp;lt;&amp;lt; concatenate(lotFiles1, create source column);
		For(i = 1, i &amp;lt;= N Items(lotFiles), i++,
			Close(lotFiles[i], nosave)
		);,
	N Items(lotFiles) == 0,
		Print("no lot data, please try again");
		Return(0);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:02:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568770#M77941</guid>
      <dc:creator>BTeague</dc:creator>
      <dc:date>2023-06-09T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to bypass or accept duplicate files</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568799#M77942</link>
      <description>&lt;P&gt;You have a list of files called&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;lotfiles&lt;/P&gt;
&lt;P&gt;and you reference it using a subscript when referring to a single element, and without a subscript when referencing the entire list.&amp;nbsp; However, you also have a variable referenced as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; lotfiles1&lt;/P&gt;
&lt;P&gt;is this an error?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 01:23:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568799#M77942</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-11-14T01:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to bypass or accept duplicate files</title>
      <link>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568996#M77959</link>
      <description>&lt;P&gt;It looks to me like your second if statement needs work, maybe something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	N Items(lotFiles) == 1, CalibrationTable = lotFiles[1],
	N Items(lotFiles) &amp;gt; 1,
		CalibrationTable = lotFiles[1];
		For(i = 2, i &amp;lt;= N Items(lotFiles), i++,
			 CalibrationTable &amp;lt;&amp;lt; concatenate(lotFiles[i], create source column);
			 Close(lotFiles[i], nosave)
		);,
	N Items(lotFiles) == 0,
		Print("no lot data, please try again");
		Return(0);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Nov 2022 14:01:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Looking-to-bypass-or-accept-duplicate-files/m-p/568996#M77959</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2022-11-14T14:01:45Z</dc:date>
    </item>
  </channel>
</rss>

