<?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 how to read this              01/14/2020 09:40:20 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617560#M180995</link>
    <description>&lt;P&gt;Please help me read this text file&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am a newbie.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;   proc format;
      picture $dtpic
      other='%0m/%0d/%Y %0H:%0M:%0S' (datatype=datetime)
   ;
   run;


   data tmp;
      infile '../data/RERATE-report_clean.dat' missover;
      input
           @69   mystr $19.
      ;

   data tmp2;
      set here.tmp;
      format mystr $dtpic.;
&lt;/PRE&gt;
&lt;P&gt;Heres the error.&lt;/P&gt;
&lt;PRE&gt;MPRINT(DRIVER):   proc format;
NOTE 137-205: Line generated by the invoked macro "DRIVER".
114          %inc "./common";      proc format;       picture $dtpic       other='%0m/%0d/%Y %0H:%0M:%0S' (datatype=datetime)    ;
                                                              _
                                                              22
114      !   run;      data tmp;       infile '../data/RERATE-report_clean.dat' missover;       input             @69   mystr $19.
114      !      ;
ERROR 22-322: Expecting a name.  

&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Jan 2020 20:18:48 GMT</pubDate>
    <dc:creator>cellurl</dc:creator>
    <dc:date>2020-01-15T20:18:48Z</dc:date>
    <item>
      <title>how to read this              01/14/2020 09:40:20</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617560#M180995</link>
      <description>&lt;P&gt;Please help me read this text file&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am a newbie.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;   proc format;
      picture $dtpic
      other='%0m/%0d/%Y %0H:%0M:%0S' (datatype=datetime)
   ;
   run;


   data tmp;
      infile '../data/RERATE-report_clean.dat' missover;
      input
           @69   mystr $19.
      ;

   data tmp2;
      set here.tmp;
      format mystr $dtpic.;
&lt;/PRE&gt;
&lt;P&gt;Heres the error.&lt;/P&gt;
&lt;PRE&gt;MPRINT(DRIVER):   proc format;
NOTE 137-205: Line generated by the invoked macro "DRIVER".
114          %inc "./common";      proc format;       picture $dtpic       other='%0m/%0d/%Y %0H:%0M:%0S' (datatype=datetime)    ;
                                                              _
                                                              22
114      !   run;      data tmp;       infile '../data/RERATE-report_clean.dat' missover;       input             @69   mystr $19.
114      !      ;
ERROR 22-322: Expecting a name.  

&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617560#M180995</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2020-01-15T20:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to read this              01/14/2020 09:40:20</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617561#M180996</link>
      <description>&lt;P&gt;Since the dollar sign is underlined, that is the problem. Remove it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617561#M180996</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-15T20:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to read this              01/14/2020 09:40:20</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617562#M180997</link>
      <description>now it says&lt;BR /&gt;&lt;BR /&gt;ERROR 48-59: The format $DTPIC was not found or could not be loaded.&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617562#M180997</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2020-01-15T20:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to read this              01/14/2020 09:40:20</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617563#M180998</link>
      <description>&lt;PRE&gt;   proc format;
      picture dtpic
      other='%0m/%0d/%Y %0H:%0M:%0S' (datatype=datetime)
   ;
   run;


   data tmp;
      infile '../data/RERATE-report_clean.dat' missover;
      input
           @69   mystr $19.
      ;

   data tmp2;
      set tmp;
      format mystr dtpic.;


NOTE: Line generated by the invoked macro "DRIVER".
226             data tmp2;       set tmp;       format mystr dtpic.;            endsas;        data here.tmp;       format
                                                             ______
                                                             48
226      ! request_dt mmddyy10.;       infile '../data/RERATE-report_clean.dat' missover;       input             @9    request_id
226      !       $8.
MPRINT(DRIVER):   data tmp2;
MPRINT(DRIVER):   set tmp;
MPRINT(DRIVER):   format mystr dtpic.;
MPRINT(DRIVER):   endsas
NOTE: The SAS System stopped processing this step because of errors.
NOTE: Due to ERROR(s) above, SAS set option OBS=0, enabling syntax check mode. 
&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617563#M180998</guid>
      <dc:creator>cellurl</dc:creator>
      <dc:date>2020-01-15T20:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to read this              01/14/2020 09:40:20</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617564#M180999</link>
      <description>&lt;P&gt;Your log does not indicate that you re-ran PROC FORMAT without the $ character.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617564#M180999</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-15T20:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to read this              01/14/2020 09:40:20</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617565#M181000</link>
      <description>&lt;P&gt;You seem confused about the difference between a FORMAT and an INFORMAT.&amp;nbsp; You use a format to convert values into text and and informat to convert text into values.&amp;nbsp; The PICTURE statement in PROC FORMAT can only be used to create numeric formats. You cannot use it to create an informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be able to find an existing informat that can read those values as datatime values.&amp;nbsp; But since your file seems to be in fixed column positions:&lt;/P&gt;
&lt;PRE&gt;913   data _null_;
914     infile "&amp;amp;path/RERATE-report_clean.dat.txt" ;
915     input;
916     list;
917   run;

NOTE: The infile ".../RERATE-report_clean.dat.txt" is:
      Filename=.../RERATE-report_clean.dat.txt,
      RECFM=V,LRECL=32767,File Size (bytes)=435,
      Last Modified=15Jan2020:15:20:18,
      Create Time=15Jan2020:15:20:18

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
1                 1748882         Vida Shoe International - GR    01/13/2020  01/14/2020 09:40:20      0    1
     101    Port/Channel :5 IS BLOCKED BY &amp;lt;&amp;lt;&amp;lt;IDEA&amp;gt;&amp;gt;&amp;gt; 142
2             1   1743260   FXG   Blick Art Materials             12/03/2019  12/11/2019 02:25:22     34    8
     101    Completed by:IDEA,PARS,PEARS   Received by:Ground(withAgent),(WIP) 168
3            39   1747645*  CMB   Union Home Mortgage             01/03/2020  01/14/2020 09:10:14      0    1
     101    Completed by:IDEA 119
&lt;/PRE&gt;
&lt;P&gt;it is probably going to be easier to read the date and time as two separate variables. You can put them together again if you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile "&amp;amp;path/RERATE-report_clean.dat.txt" truncover ;
  input id1 1-5 id2 $ 6-15 name $25-55 
        @57 date1 mmddyy10. @69 date2 mmddyy10. @80 time time8. 
        num1 89-94 num2 95-99 @102 description $200. 
  ;
  datetime = dhms(date2,0,0,time);
  format date1 date2 yymmdd10. time time8. datetime datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;Obs id1    id2                name                date1       date2      time

 1    .  1748882  Vida Shoe International - GR  2020-01-13  2020-01-14  9:40:20
 2    1  1743260  Blick Art Materials           2019-12-03  2019-12-11  2:25:22
 3   39  1747645  Union Home Mortgage           2020-01-03  2020-01-14  9:10:14

Obs num1  num2  description

 1    0     1   Port/Channel :5 IS BLOCKED BY &amp;lt;&amp;lt;&amp;lt;IDEA&amp;gt;&amp;gt;&amp;gt;
 2   34     8   Completed by:IDEA,PARS,PEARS   Received by:Ground(withAgent),(WIP)
 3    0     1   Completed by:IDEA

Obs      datetime

 1  14JAN2020:09:40:20
 2  11DEC2019:02:25:22
 3  14JAN2020:09:10:14&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-read-this-01-14-2020-09-40-20/m-p/617565#M181000</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-01-15T20:52:03Z</dc:date>
    </item>
  </channel>
</rss>

