<?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 import this file to SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94090#M26650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;could anyone help me import this file into SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the extension name is not .txt but it can be read by notepad,I want import this file into SAS without change its extension name(if I change .srt to .txt it will works but i want see whether we don't need to change it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one&lt;/P&gt;&lt;P&gt;infile "C:\Users\Lost - [2x07] - The Other 48 Days.XviD-LOL.English.srt;&lt;/P&gt;&lt;P&gt;input contens;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 19:33:02 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2013-07-29T19:33:02Z</dc:date>
    <item>
      <title>How to import this file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94090#M26650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;could anyone help me import this file into SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the extension name is not .txt but it can be read by notepad,I want import this file into SAS without change its extension name(if I change .srt to .txt it will works but i want see whether we don't need to change it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one&lt;/P&gt;&lt;P&gt;infile "C:\Users\Lost - [2x07] - The Other 48 Days.XviD-LOL.English.srt;&lt;/P&gt;&lt;P&gt;input contens;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 19:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94090#M26650</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2013-07-29T19:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to import this file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94091#M26651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't provided any information on the desired output, so I am assuming that you just simply want it read in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WORK.Lost____2x07____The_Other_48_Day;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LENGTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ 2000 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FORMAT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $CHAR40. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFORMAT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $CHAR40. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFILE 'E:\Lost - [2x07] - The Other 48 Days.XviD-LOL.English.SRT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRECL=2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMSTR=CRLF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRUNCOVER ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $CHAR2000. ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 00:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94091#M26651</guid>
      <dc:creator>Scott_Mitchell</dc:creator>
      <dc:date>2013-07-30T00:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to import this file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94092#M26652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and if Mike just wants to view it in SAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FSLIST FILE= "that file";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 06:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94092#M26652</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-07-30T06:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to import this file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94093#M26653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you run the following code (corrected missing ") what are the messages? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The infile statement does not care for extensions. With SAS never experienced... &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#n1rill4udj0tfun1fvce3j401plo.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/65040/HTML/default/viewer.htm#n1rill4udj0tfun1fvce3j401plo.htm"&gt;SAS(R) 9.4 Statements: Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/64812/HTML/default/viewer.htm#n07buc7sg08fdrn1c1jmmr8hl78r.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/64812/HTML/default/viewer.htm#n07buc7sg08fdrn1c1jmmr8hl78r.htm"&gt;SAS(R) 9.4 Companion for Windows&lt;/A&gt; (infile - referencing external files)&lt;/P&gt;&lt;P&gt;By the way, It is really simple short ascii file with 3 record/obs (1/ recno, 2/ timing info 3/ message line(s)&amp;nbsp;&amp;nbsp; segregated by blank line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one&lt;/P&gt;&lt;P&gt;infile "C:\Users\Lost - [2x07] - The Other 48 Days.XviD-LOL.English.srt" ;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* added the quotes */&lt;/P&gt;&lt;P&gt;input ;&amp;nbsp; put _infile_ ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 11:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94093#M26653</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-07-30T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to import this file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94094#M26654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As others have stated, you are missing a closing quotation mark at the end of your infile statement fileref.&amp;nbsp; The file format is also quite simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13751865326955041" jivemacro_uid="_13751865326955041" modifiedtitle="true"&gt;
&lt;P&gt;data subs;&lt;/P&gt;
&lt;P&gt;infile '/path/to/file.srt' truncover ;&lt;/P&gt;
&lt;P&gt;input #1 id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #2 xstart_time $12. +5 xend_time $12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; #3 sub $200.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; #4&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;format start_time end_time time12.3 ;&lt;/P&gt;
&lt;P&gt;start_time = input( translate( xstart_time , '.' , ',' ) , time12. ) ;&lt;/P&gt;
&lt;P&gt;end_time&amp;nbsp;&amp;nbsp; = input( translate( xend_time&amp;nbsp;&amp;nbsp; , '.' , ',' ) , time12. ) ;&lt;/P&gt;
&lt;P&gt;drop xstart_time xend_time;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 12:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-import-this-file-to-SAS/m-p/94094#M26654</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2013-07-30T12:19:08Z</dc:date>
    </item>
  </channel>
</rss>

