<?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: Force column from CSV import as Character not Numeric Date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/522860#M74759</link>
    <description>&lt;P&gt;Hi. &amp;nbsp;I agree 100%. &amp;nbsp;I just posted a slightly more generalized version of your request that applies for Open(), Multiple File Import(), and both csv and xlsx files. &amp;nbsp;Linking here for visibility:&amp;nbsp;&lt;LI-MESSAGE title="Force Character Column Data Type for Open() and Multiple File Import()" uid="522844" url="https://community.jmp.com/t5/JMP-Wish-List/Force-Character-Column-Data-Type-for-Open-and-Multiple-File/m-p/522844#U522844" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 12:25:04 GMT</pubDate>
    <dc:creator>nikles</dc:creator>
    <dc:date>2022-07-25T12:25:04Z</dc:date>
    <item>
      <title>Force column from CSV import as Character not Numeric Date</title>
      <link>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/260752#M51078</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My input CSV data files have a Character column in the format of: "##.##.##".&lt;/P&gt;&lt;P&gt;"##" can be anything from 0 to 99.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that I am having is that for most of these combinations, when I import the CSV using a basic "Open(filename)" command, the column converts it to a numeric date type which is not useful for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made patch fixes using Month/Day/Year column functions but I was interested in forcing the input to be a Character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague shared the following, which does exactly what I need for local CSV files.&lt;/P&gt;&lt;P&gt;The "Set Date Enable (0)" does exactly what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Multiple File Import(
   &amp;lt;&amp;lt; Set Folder( csv_file_path ),
   &amp;lt;&amp;lt; Set Name Filter( csv_filename ),
   &amp;lt;&amp;lt; Set Date Enable( 0 )
) &amp;lt;&amp;lt; Import Data;	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My current issue is that I also have CSV files that I download from a URL (not a local file) and I am not sure how to configure the above JSL code to get that to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;URL CSV syntax: "&lt;A href="http://xxx.yyy.com:###/api/csv.php?p=#####&amp;quot;" target="_blank"&gt;http://xxx.yyy.com:###/api/csv.php?p=#####"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 03:38:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/260752#M51078</guid>
      <dc:creator>caseofmondays</dc:creator>
      <dc:date>2020-04-24T03:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Force column from CSV import as Character not Numeric Date</title>
      <link>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/261486#M51201</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this discussion will be helpful for you to understand more about the syntax for Multiple File Import():&amp;nbsp;&lt;LI-MESSAGE title="How can I prevent 3-digit version numbers from getting read as dates into data table?" uid="250195" url="https://community.jmp.com/t5/Discussions/How-can-I-prevent-3-digit-version-numbers-from-getting-read-as/m-p/250195#U250195" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that you will find that it is not the Set Date Enable argument that is enabling the correct import of your character data column. Rather, it is because the Import Multiple Files platform inherently &lt;SPAN&gt;will not try to guess date formats. Set Date Enable is determining whether or not the date filter is turned on (so that you could filter on a date range).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See here for more on the arguments:&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/utility-functions.shtml#ww7168938" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/15.1/#page/jmp/utility-functions.shtml#ww7168938&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That does not really answer your question but I hope it helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding your question: are you using JSL because this is an action that you need to repeat or could you just use the point-and-click interface in JMP? I would think it would be worth experimenting with using the point-and-click interface to Import Multiple Files to get a better understanding of your problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Phil&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 13:01:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/261486#M51201</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2020-04-27T13:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Force column from CSV import as Character not Numeric Date</title>
      <link>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/522860#M74759</link>
      <description>&lt;P&gt;Hi. &amp;nbsp;I agree 100%. &amp;nbsp;I just posted a slightly more generalized version of your request that applies for Open(), Multiple File Import(), and both csv and xlsx files. &amp;nbsp;Linking here for visibility:&amp;nbsp;&lt;LI-MESSAGE title="Force Character Column Data Type for Open() and Multiple File Import()" uid="522844" url="https://community.jmp.com/t5/JMP-Wish-List/Force-Character-Column-Data-Type-for-Open-and-Multiple-File/m-p/522844#U522844" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:25:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Force-column-from-CSV-import-as-Character-not-Numeric-Date/m-p/522860#M74759</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2022-07-25T12:25:04Z</dc:date>
    </item>
  </channel>
</rss>

