<?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: Proc Import/different formats on the date and time varaible in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904386#M357319</link>
    <description>&lt;P&gt;So this log is for a data step import?&lt;/P&gt;
&lt;P&gt;Clearly your code does bot align with your data, and without an infile, it's hard to tell what your are doing wrong.&lt;/P&gt;
&lt;P&gt;Also, your example of input data does not match your input code.&lt;/P&gt;
&lt;P&gt;Can you ellaborate around "...&lt;SPAN&gt;&lt;EM&gt;when the excel file collected in different way&lt;/EM&gt;"?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 15:25:49 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2023-11-23T15:25:49Z</dc:date>
    <item>
      <title>Proc Import/different formats on the date and time varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904355#M357313</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using Proc Import for importing Excel csv file, I have situation when the excel file collected in different way and SAS log is showing issues when I am just using this code(below). I tried to use "Infile" but again the same issues are showed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example from excel file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manvel_0-1700749349825.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90128i38F89DB97B9ACB1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manvel_0-1700749349825.png" alt="Manvel_0-1700749349825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc Import File = "filelocation"
    Out = test
    Dbms = csv
    replace;
Run;

*Infile code;
  Infile "filelocation"
  delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2;										
  Informat STUDYID $15. SITENUM BEST32. SUBNUM BEST32. VISIT $35. XXDT date11. XXTIM TIME20.3;
  Format   STUDYID $15. SITENUM BEST12. SUBNUM BEST12. VISIT $35. XXDT date11. XXTIM TIME20.3;
  Input STUDYID $ SITENUM $ SUBNUM $ VISIT $ XXDT XXTIM;										
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904355#M357313</guid>
      <dc:creator>Manvel</dc:creator>
      <dc:date>2023-11-23T14:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import/different formats on the date and time varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904356#M357314</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;... and SAS log is showing issues ...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What issues? Show us the LOG for this PROC IMPORT (all of it, every single line in the log for this PROC IMPORT).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:30:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904356#M357314</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-23T14:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import/different formats on the date and time varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904359#M357315</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manvel_0-1700750461364.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90129iC603FC4232B7DAF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manvel_0-1700750461364.png" alt="Manvel_0-1700750461364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I masked not necessary variable names and paths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904359#M357315</guid>
      <dc:creator>Manvel</dc:creator>
      <dc:date>2023-11-23T14:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import/different formats on the date and time varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904386#M357319</link>
      <description>&lt;P&gt;So this log is for a data step import?&lt;/P&gt;
&lt;P&gt;Clearly your code does bot align with your data, and without an infile, it's hard to tell what your are doing wrong.&lt;/P&gt;
&lt;P&gt;Also, your example of input data does not match your input code.&lt;/P&gt;
&lt;P&gt;Can you ellaborate around "...&lt;SPAN&gt;&lt;EM&gt;when the excel file collected in different way&lt;/EM&gt;"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 15:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904386#M357319</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-11-23T15:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import/different formats on the date and time varaible</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904404#M357323</link>
      <description>&lt;P&gt;Do you have an EXCEL file?&amp;nbsp; Like in your photograph?&amp;nbsp; If it is an EXCEL file (like an XLSX file) then you will have to use PROC IMPORT to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do you have a TEXT FILE? Like in your code? In that case DO NOT let EXCEL open it automatically.&amp;nbsp; &amp;nbsp;And if you do accidental do open it that way DO NOT SAVE it.&amp;nbsp; EXCEL will change the values.&amp;nbsp; If you have already done this then try to go back to the original file you received before you opened it with EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a TEXT file then share a few sample lines of the file and we can advise on what INFORMAT to use the read the values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: Don't use BEST as an INFORMAT.&amp;nbsp; It is the name of a FORMAT and using it as the name of an INFORMAT will just be confusing since there is no "best" way to store a number.&amp;nbsp; SAS stores all numbers as 64 bit binary floating point values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 16:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-different-formats-on-the-date-and-time-varaible/m-p/904404#M357323</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-23T16:24:27Z</dc:date>
    </item>
  </channel>
</rss>

