<?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: help needed with import of text file using infile in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216393#M5273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arthur.But,what is trmstr='lF' option and why individually writing of informat statement .cant we mention with a colon modifier :&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 03:29:39 GMT</pubDate>
    <dc:creator>venkatnaveen</dc:creator>
    <dc:date>2015-04-06T03:29:39Z</dc:date>
    <item>
      <title>help needed with import of text file using infile</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216390#M5270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not getting the. result.I need some help.Is there&amp;nbsp; any other method.help me out please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;DATA Sara2013;&lt;/P&gt;&lt;P&gt;INFORMAT Date YYMMDD10.&amp;nbsp; Time $5. ;&lt;/P&gt;&lt;P&gt;FORMAT&amp;nbsp; Date YYMMDD10. Time $5. ;&lt;/P&gt;&lt;P&gt;INFILE 'C:\nav\2013_Satisfaction_Survey_Sara (4).txt'&lt;/P&gt;&lt;P&gt;LRECL=32767 dsd&amp;nbsp; dlm='' truncover firstobs=2;&lt;/P&gt;&lt;P&gt;INPUT @1 Date: YYMMDD10. @12 Time : $5.&lt;/P&gt;&lt;P&gt;&amp;nbsp; @18 Interviewer :$4. @23 Age :$2. @26 Gender :$1. @28 Address: &amp;amp;$18. @48 FirstTime :$6. @52 ComeAgain :$5. WhyNot: $11.&amp;nbsp; (Sat1-Sat8)(:$3.) Comments :$50.;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2015 19:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216390#M5270</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2015-04-05T19:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with import of text file using infile</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216391#M5271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA Sara2013;&lt;/P&gt;&lt;P&gt;&amp;nbsp; INFILE 'C:\temp\2013_Satisfaction_Survey_Sara (2).txt'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LRECL=32767 termstr=LF truncover firstobs=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat date yymmdd10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat time $5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat interviewer $4.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat age $2.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat gender $1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat address $18.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat FirstTime $3.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat ComeAgain $3.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat WhyNot $11.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Sat1-Sat7 $3.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Sat8 $2.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat Comments $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FORMAT&amp;nbsp; Date YYMMDD10. Time $5. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; INPUT @1 Date Time 12-16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interviewer 18-21 Age 23-24 Gender 26-26 Address 28-46&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstTime 48-50 ComeAgain 52-54 WhyNot 56-66 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sat1 68-70 Sat2 72-74 Sat3 76-78 Sat4 80-82&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sat5 84-86 Sat6 88-90 Sat7 92-94 Sat8 96-97 Comments 98-147;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Apr 2015 21:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216391#M5271</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-04-05T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with import of text file using infile</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216392#M5272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need to add the TRUNCOVER option to the INFILE statement since some of the lines appear shorter than others.&lt;/P&gt;&lt;P&gt;Also you need to add the FIRSTOBS=2 option to get it to skip the header line in the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 00:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216392#M5272</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-04-06T00:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with import of text file using infile</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216393#M5273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arthur.But,what is trmstr='lF' option and why individually writing of informat statement .cant we mention with a colon modifier :&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 03:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216393#M5273</guid>
      <dc:creator>venkatnaveen</dc:creator>
      <dc:date>2015-04-06T03:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: help needed with import of text file using infile</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216394#M5274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;termstr=LF is to indicate that your records end with '10'x (line feed) character, rather that the combination of a CR and a line feed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I don't know how common it is, I have always liked defining informats rather than specifying them in the input statement and using colons. Obviously, you could try alternative approaches, but the one I suggested appears to correctly read your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 12:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/help-needed-with-import-of-text-file-using-infile/m-p/216394#M5274</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-04-06T12:35:28Z</dc:date>
    </item>
  </channel>
</rss>

