<?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: I want to make a SAS data set using datalines data , what should I do ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760277#M240393</link>
    <description>&lt;P&gt;Your sample program is most of the solution.&amp;nbsp; However, by reading across from left to right and taking whatever is found in the data, the program has to decide how many characters to use to store NAME.&amp;nbsp; In that situation, the software automatically uses a length of 8, so values of NAME will be truncated.&amp;nbsp; To fix that, define NAME before the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data bank2;
infile datalines dsd;
length name $ 15;
input name $ rate;
datalines;
FirstCapital 0.0718
DirectBank 0.0721
VirtualDirect 0.0728
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just select a length that makes sense for the data you need to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, if some values of NAME contain an embedded blank such as "First Capital", you will need to take additional steps.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Aug 2021 20:07:25 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2021-08-08T20:07:25Z</dc:date>
    <item>
      <title>I want to make a SAS data set using datalines data , what should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760267#M240386</link>
      <description>&lt;P&gt;data bank2;&lt;BR /&gt;infile datalines dsd;&lt;BR /&gt;input name $ rate;&lt;BR /&gt;datalines;&lt;BR /&gt;FirstCapital 0.0718&lt;BR /&gt;DirectBank 0.0721&lt;BR /&gt;VirtualDirect 0.0728&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print data = bank2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 18:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760267#M240386</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-08T18:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a SAS data set using datalines data , what should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760275#M240391</link>
      <description>I don't understand.  What ate you asking?&lt;BR /&gt;&lt;BR /&gt;If you are getting errors, please post your log.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Sun, 08 Aug 2021 19:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760275#M240391</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-08T19:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a SAS data set using datalines data , what should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760276#M240392</link>
      <description>I want to make a SAS data set using datalines statement ,the data in the datalines as following：&lt;BR /&gt;&lt;BR /&gt;FirstCapital 0.0718&lt;BR /&gt;DirectBank 0.0721&lt;BR /&gt;VirtualDirect 0.0728&lt;BR /&gt;&lt;BR /&gt;the variable name is 'name' and 'rate' .</description>
      <pubDate>Sun, 08 Aug 2021 19:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760276#M240392</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-08T19:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a SAS data set using datalines data , what should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760277#M240393</link>
      <description>&lt;P&gt;Your sample program is most of the solution.&amp;nbsp; However, by reading across from left to right and taking whatever is found in the data, the program has to decide how many characters to use to store NAME.&amp;nbsp; In that situation, the software automatically uses a length of 8, so values of NAME will be truncated.&amp;nbsp; To fix that, define NAME before the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data bank2;
infile datalines dsd;
length name $ 15;
input name $ rate;
datalines;
FirstCapital 0.0718
DirectBank 0.0721
VirtualDirect 0.0728
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just select a length that makes sense for the data you need to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, if some values of NAME contain an embedded blank such as "First Capital", you will need to take additional steps.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 20:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760277#M240393</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-08-08T20:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: I want to make a SAS data set using datalines data , what should I do ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760278#M240394</link>
      <description>Thank you for your help.</description>
      <pubDate>Sun, 08 Aug 2021 20:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-make-a-SAS-data-set-using-datalines-data-what-should-I/m-p/760278#M240394</guid>
      <dc:creator>tianerhu</dc:creator>
      <dc:date>2021-08-08T20:37:14Z</dc:date>
    </item>
  </channel>
</rss>

