<?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: Import file with $ as delimeter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744770#M233366</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data Company;
infile "c:\temp\company.txt" dlm = '$' dsd truncover termstr=lf;
input LastName $ EmpNo $ Salary;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 31 May 2021 12:47:53 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-05-31T12:47:53Z</dc:date>
    <item>
      <title>Import file with $ as delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744648#M233305</link>
      <description>&lt;P&gt;You are given a text file company.txt where dollar signs were used as delimiters. To indicate missing values, two dollars signs were entered. Values in this file represent last name, employee number, and annual salary.&lt;BR /&gt;Using this data file as input, create a SAS data set called Company with the variables LastName (character), EmpNo (character), and Salary (numeric).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran this program, in the log there is error while reading one of the records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code I used:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Company;&lt;BR /&gt;infile "~/company.txt" dlm = '$';&lt;BR /&gt;input LastName $ EmpNo $ Salary;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-05-30 at 6.16.27 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59885i77FAF82B8CCD1E87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-05-30 at 6.16.27 PM.png" alt="Screenshot 2021-05-30 at 6.16.27 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone help me out with how I can read that record?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 06:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744648#M233305</guid>
      <dc:creator>sunayana67</dc:creator>
      <dc:date>2021-05-31T06:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744650#M233307</link>
      <description>&lt;P&gt;In addition to using dsm='$' on the INFILE statement, add one more option:&amp;nbsp; dsd&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's what tells SAS that each $ delimits a separate variable.&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 13:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744650#M233307</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-05-30T13:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744708#M233337</link>
      <description>&lt;P&gt;Please change the title to something meaningful.&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 22:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744708#M233337</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-05-30T22:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import file with $ as delimeter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744770#M233366</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data Company;
infile "c:\temp\company.txt" dlm = '$' dsd truncover termstr=lf;
input LastName $ EmpNo $ Salary;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 May 2021 12:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-with-as-delimeter/m-p/744770#M233366</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-05-31T12:47:53Z</dc:date>
    </item>
  </channel>
</rss>

