<?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 inputting raw data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/inputting-raw-data/m-p/503777#M870</link>
    <description>&lt;P&gt;I'm trying to create a dataset from some columns I copied from a text file.&amp;nbsp; Ideally, I'd like the roman numerals to appear in the first column and the numbers with the decimals in the second column, both as text variables.&amp;nbsp;&amp;nbsp; However, SAS isn't recognizing the space that separates the two columns.&amp;nbsp;&amp;nbsp; See what the put statement yields below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Sel;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rom $ num $;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i. 290.0&lt;/P&gt;&lt;P&gt;ii. 290.1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; null;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sel;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rom= num=;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;The put statement yield the following in the log.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rom=i. 290.0 num=ii. 290.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Oct 2018 16:13:56 GMT</pubDate>
    <dc:creator>Batman</dc:creator>
    <dc:date>2018-10-12T16:13:56Z</dc:date>
    <item>
      <title>inputting raw data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/inputting-raw-data/m-p/503777#M870</link>
      <description>&lt;P&gt;I'm trying to create a dataset from some columns I copied from a text file.&amp;nbsp; Ideally, I'd like the roman numerals to appear in the first column and the numbers with the decimals in the second column, both as text variables.&amp;nbsp;&amp;nbsp; However, SAS isn't recognizing the space that separates the two columns.&amp;nbsp;&amp;nbsp; See what the put statement yields below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Sel;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rom $ num $;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i. 290.0&lt;/P&gt;&lt;P&gt;ii. 290.1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; null;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sel;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rom= num=;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;The put statement yield the following in the log.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rom=i. 290.0 num=ii. 290.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 16:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/inputting-raw-data/m-p/503777#M870</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2018-10-12T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: inputting raw data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/inputting-raw-data/m-p/503783#M872</link>
      <description>&lt;P&gt;Blank lines in a datalines block are seldom a good idea.&lt;/P&gt;
&lt;P&gt;This seems to work for me but it is possible that between pasting to the forum message window, my copy and paste into the editor and running the code removed a problem character.&lt;/P&gt;
&lt;PRE&gt;data Sel;
input rom $ num $;
datalines;
i. 290.0
ii. 290.1
;
run;&lt;/PRE&gt;
&lt;P&gt;I suggest going back to your editor, copying the code and then pasting into a code box opened using the forum {I} icon so you are pasting in a plain text box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that you may have copied data from a TAB delimited file which would look like spaces but aren't. That could be tested by adding an infile statement to us tabs:&lt;/P&gt;
&lt;PRE&gt;data Sel;
infile datalines dlm='09'x;
input rom $ num $;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Oct 2018 16:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/inputting-raw-data/m-p/503783#M872</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-12T16:31:11Z</dc:date>
    </item>
  </channel>
</rss>

