<?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: Using array to name columns in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Using-array-to-name-columns/m-p/680266#M23976</link>
    <description>&lt;P&gt;You can do this in the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input treatment t1-t36;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need to add informats (e.g. for character variables), use brackets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input treatment :$30. (t1-t36) (:$20.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Aug 2020 06:42:41 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-08-30T06:42:41Z</dc:date>
    <item>
      <title>Using array to name columns</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-array-to-name-columns/m-p/680265#M23975</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a csv file, and I am wanting to name my columns using the array function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 37 variables- the first variable is treatment, and the next 36 are T1-T36.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I go about naming my columns?&lt;/P&gt;&lt;P&gt;Sorry I am new to SAS, this may sound like a dumb question.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 06:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-array-to-name-columns/m-p/680265#M23975</guid>
      <dc:creator>jeffgreen</dc:creator>
      <dc:date>2020-08-30T06:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using array to name columns</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-array-to-name-columns/m-p/680266#M23976</link>
      <description>&lt;P&gt;You can do this in the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input treatment t1-t36;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need to add informats (e.g. for character variables), use brackets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input treatment :$30. (t1-t36) (:$20.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 06:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-array-to-name-columns/m-p/680266#M23976</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-30T06:42:41Z</dc:date>
    </item>
  </channel>
</rss>

