<?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 Datalines statement not creating desired data output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687670#M208777</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having problems creating a new SAS dataset.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cars6;&lt;BR /&gt;infile DATALINES DLM="," ;&lt;BR /&gt;input category $ category_desc $ ;&lt;BR /&gt;CARDS;&lt;BR /&gt;A00,This group will go inside&lt;/P&gt;&lt;P&gt;Y83,This group will go to the outside yard and have a snack at lunch&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;PROC PRINT DATA=cars6(OBS=5);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc contents data = cars6;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the output to be two columns, exactly how I entered the data.&amp;nbsp; However, when proc contents has set both variables set to length 8.&amp;nbsp; So my variables are being truncated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm feeling frustrated because I already put in a deliminater of a comma.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:21:37 GMT</pubDate>
    <dc:creator>sharonlee</dc:creator>
    <dc:date>2020-09-29T22:21:37Z</dc:date>
    <item>
      <title>Datalines statement not creating desired data output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687670#M208777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having problems creating a new SAS dataset.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cars6;&lt;BR /&gt;infile DATALINES DLM="," ;&lt;BR /&gt;input category $ category_desc $ ;&lt;BR /&gt;CARDS;&lt;BR /&gt;A00,This group will go inside&lt;/P&gt;&lt;P&gt;Y83,This group will go to the outside yard and have a snack at lunch&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;PROC PRINT DATA=cars6(OBS=5);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc contents data = cars6;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the output to be two columns, exactly how I entered the data.&amp;nbsp; However, when proc contents has set both variables set to length 8.&amp;nbsp; So my variables are being truncated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm feeling frustrated because I already put in a deliminater of a comma.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687670#M208777</guid>
      <dc:creator>sharonlee</dc:creator>
      <dc:date>2020-09-29T22:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines statement not creating desired data output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687671#M208778</link>
      <description>&lt;P&gt;The default length for a character variable is 8, so that is what you experience. You can force a larger length in the INPUT statement like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input category $ category_desc :$50.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687671#M208778</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-29T22:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Datalines statement not creating desired data output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687677#M208781</link>
      <description>&lt;BR /&gt;Thanks!!</description>
      <pubDate>Tue, 29 Sep 2020 22:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datalines-statement-not-creating-desired-data-output/m-p/687677#M208781</guid>
      <dc:creator>sharonlee</dc:creator>
      <dc:date>2020-09-29T22:59:44Z</dc:date>
    </item>
  </channel>
</rss>

