<?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 Help! Import .asc file to SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158975#M41514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received several .asc files, but do not know how to import/read them in sas. I tried to use the code listed below, but since I do not know what variables are in that file, I cannot use "input" statement to rename and define them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sasdat;&lt;/P&gt;&lt;P&gt;infile 'C:\XX\';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log shows: &lt;/P&gt;&lt;P&gt;NOTE: The infile 'C:\Core.asc' is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=C:Core.asc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256,File Size (bytes)=4061484384,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;NOTE: 0 records were read from the infile 'C:Core.asc'.&lt;/P&gt;&lt;P&gt;NOTE: The data set sasdat has 1 observations and 0 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are appreciated! THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 17:28:17 GMT</pubDate>
    <dc:creator>s100</dc:creator>
    <dc:date>2014-05-14T17:28:17Z</dc:date>
    <item>
      <title>Help! Import .asc file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158975#M41514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I received several .asc files, but do not know how to import/read them in sas. I tried to use the code listed below, but since I do not know what variables are in that file, I cannot use "input" statement to rename and define them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sasdat;&lt;/P&gt;&lt;P&gt;infile 'C:\XX\';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Log shows: &lt;/P&gt;&lt;P&gt;NOTE: The infile 'C:\Core.asc' is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=C:Core.asc,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256,File Size (bytes)=4061484384,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;NOTE: 0 records were read from the infile 'C:Core.asc'.&lt;/P&gt;&lt;P&gt;NOTE: The data set sasdat has 1 observations and 0 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are appreciated! THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158975#M41514</guid>
      <dc:creator>s100</dc:creator>
      <dc:date>2014-05-14T17:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Import .asc file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158976#M41515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First step would be to open the file in a plain text reader such as Notepad. I suspect that ASC as a file suffix means it is ASCII&amp;nbsp; which should be plain text.&lt;/P&gt;&lt;P&gt;That may give you some clues.&lt;/P&gt;&lt;P&gt;If the file does not have an obvious delimiter such as comma or space, or less obvious such as a Tab character, you'll likely need to find a document that specifies what columns contain what data, which would be a good idea anyway.&lt;/P&gt;&lt;P&gt;You don't mention the source. If someone sent them they should provide a layout document. If downloaded from a website one would hope a description is available somewhere near where you found the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158976#M41515</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-14T17:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Import .asc file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158977#M41516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried to open it with Notepad, but it is too large that Notepad cannot open it. &lt;/P&gt;&lt;P&gt;Do you mean I cannot import the data file without using the input statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158977#M41516</guid>
      <dc:creator>s100</dc:creator>
      <dc:date>2014-05-14T17:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Import .asc file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158978#M41517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way to look at the file would be either to open in the SAS editor or use the FSLIST command.&lt;/P&gt;&lt;P&gt;You'll need an input statement if trying to read with a datastep. If the file is a delimited text file Proc Import would likely read it but you need to know the delimiter. If it isn't delimited your pretty much going to have to write an input statement at some time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 18:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158978#M41517</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-14T18:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Import .asc file to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158979#M41518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! I think I know how to resolve this problem!:smileylaugh:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 18:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-Import-asc-file-to-SAS/m-p/158979#M41518</guid>
      <dc:creator>s100</dc:creator>
      <dc:date>2014-05-14T18:46:45Z</dc:date>
    </item>
  </channel>
</rss>

