<?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: input comma separated row data for one variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924185#M41453</link>
    <description>Thanks ballardw,, your code works!</description>
    <pubDate>Fri, 12 Apr 2024 18:06:35 GMT</pubDate>
    <dc:creator>urban58</dc:creator>
    <dc:date>2024-04-12T18:06:35Z</dc:date>
    <item>
      <title>input comma separated row data for one variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924154#M41451</link>
      <description>&lt;P&gt;I'm trying to create a series of SAS datasets of ICD codes given to me in a word doc but I'm having trouble reading the data in&lt;/P&gt;
&lt;P&gt;have1&lt;BR /&gt;S83.51, S83.511A, S83.511D, S83.511S, S83.512A, S83.512D, S83.512S, S83.519A, S83.519D, S83.519S&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want1&lt;/P&gt;
&lt;P&gt;code&lt;BR /&gt;S83.51&lt;BR /&gt;S83.511A&lt;BR /&gt;S83.511D &lt;BR /&gt;S83.511S &lt;BR /&gt;S83.512A &lt;BR /&gt;S83.512D &lt;BR /&gt;S83.512S &lt;BR /&gt;S83.519A &lt;BR /&gt;S83.519D &lt;BR /&gt;S83.519S&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have2&lt;BR /&gt;29888, 27407, 27427, 27428, 27429&lt;/P&gt;
&lt;P&gt;want2&lt;/P&gt;
&lt;P&gt;code&lt;/P&gt;
&lt;P&gt;29888&lt;/P&gt;
&lt;P&gt;27407&lt;/P&gt;
&lt;P&gt;27427&lt;/P&gt;
&lt;P&gt;27428&lt;/P&gt;
&lt;P&gt;27429&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;4969 infile DATALINES delimiter=',' missover;&lt;BR /&gt;4970 input code $8;&lt;BR /&gt;4971 cards;&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.HAVE has 0 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;4971 S83.51, S83.511A, S83.511D, S83.511S, S83.512A, S83.512D, S83.512S, S83.519A, S83.519D,&lt;BR /&gt;------&lt;BR /&gt;180&lt;BR /&gt;4972 ! S83.519S ;&lt;/P&gt;
&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;4973 run;&lt;/P&gt;
&lt;P&gt;I would appreciate any help,&lt;/P&gt;
&lt;P&gt;Maggie&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924154#M41451</guid>
      <dc:creator>urban58</dc:creator>
      <dc:date>2024-04-12T17:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: input comma separated row data for one variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924179#M41452</link>
      <description>&lt;P&gt;This perhaps:&lt;/P&gt;
&lt;PRE&gt;data read;
   infile datalines dlm=',';
   input code :$9. @@ ;
datalines;
S83.51, S83.511A, S83.511D, S83.511S, S83.512A, S83.512D, S83.512S, S83.519A, S83.519D, S83.519S
;&lt;/PRE&gt;
&lt;P&gt;The @@ at the end of input holds the input line for multiple reads. You also didn't have an actual Informat specified (missed the .)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post log into a text box opened using the &amp;lt;/&amp;gt; icon that appears above the message window. Note that the log bit you show doesn't match what you see in your log window? This forum reformats everything pasted into the main message window and results in moving things like the diagnostic characters in the error message.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924179#M41452</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-12T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: input comma separated row data for one variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924185#M41453</link>
      <description>Thanks ballardw,, your code works!</description>
      <pubDate>Fri, 12 Apr 2024 18:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/input-comma-separated-row-data-for-one-variable/m-p/924185#M41453</guid>
      <dc:creator>urban58</dc:creator>
      <dc:date>2024-04-12T18:06:35Z</dc:date>
    </item>
  </channel>
</rss>

