<?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 Delimited Data Entry in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397824#M3485</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am trying to use deminited raw data to create a table with two variables with their populations. I wrote this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data&amp;nbsp;WORK.Illus;&lt;BR /&gt;infile&amp;nbsp;datalines&amp;nbsp;delimiter= " "; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; State&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :$10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Population&amp;nbsp; :comma10.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Washington 7,170,351&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ohio 11,613,423&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not get any error statements, but my table looks like this. What do I do to get the entire state name and population values in the table?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-09-21 at 10.26.31.png" style="width: 291px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15329i1DD1CD01537070B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-09-21 at 10.26.31.png" alt="Screen Shot 2017-09-21 at 10.26.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 16:28:58 GMT</pubDate>
    <dc:creator>marianhabesland</dc:creator>
    <dc:date>2017-09-21T16:28:58Z</dc:date>
    <item>
      <title>Delimited Data Entry</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397824#M3485</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am trying to use deminited raw data to create a table with two variables with their populations. I wrote this code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data&amp;nbsp;WORK.Illus;&lt;BR /&gt;infile&amp;nbsp;datalines&amp;nbsp;delimiter= " "; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;input&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; State&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :$10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Population&amp;nbsp; :comma10.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datalines;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Washington 7,170,351&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ohio 11,613,423&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not get any error statements, but my table looks like this. What do I do to get the entire state name and population values in the table?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-09-21 at 10.26.31.png" style="width: 291px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15329i1DD1CD01537070B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-09-21 at 10.26.31.png" alt="Screen Shot 2017-09-21 at 10.26.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397824#M3485</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-21T16:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited Data Entry</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397826#M3486</link>
      <description>&lt;P&gt;THis works for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find it easier to set the INFORMAT first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WORK.Illus;
	infile datalines delimiter=" ";
	informat state $20. population comma20.;
	format population comma20.;
	input State Population;
	datalines;
Washington 7,170,351
Ohio 11,613,423
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397826#M3486</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-21T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited Data Entry</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397827#M3487</link>
      <description>&lt;P&gt;Try either widening the column for state or use Proc Print. I suspect the table viewer just isn't making the column wide enough to see the whole state name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you mean that you also want to display the population with commas then you need to explicitly assign&amp;nbsp;a comma format for display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format population comma11.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since formats only control display not values SAS will unless otherwise instructed default to a BEST format to display numeric values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you may need a different delimiter to deal with New York, New Mexico, North and South Dakota, North and South Carolina if they are in your future data to read this way.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397827#M3487</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-21T16:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited Data Entry</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397828#M3488</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Have you tried dragging the state column width when you view the output table to see the whole state name?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;For the values do&amp;nbsp;you mean how do you get the commas appearing in your output table, just like your input datalines?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try adding the following line under your input statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;format Population comma10.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397828#M3488</guid>
      <dc:creator>BD1</dc:creator>
      <dc:date>2017-09-21T16:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delimited Data Entry</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397829#M3489</link>
      <description>&lt;P&gt;Thanks, I didn't realize it was just the formatting of the table that did not let me see the whole variable. I thought it might be cutting it off for a reason. And yes, I wanted to display the commas, so that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Delimited-Data-Entry/m-p/397829#M3489</guid>
      <dc:creator>marianhabesland</dc:creator>
      <dc:date>2017-09-21T16:55:34Z</dc:date>
    </item>
  </channel>
</rss>

