<?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: How to use length command with multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433507#M107483</link>
    <description>&lt;P&gt;A SAS log is pure text. To post it here, just use copy/paste into a window opened with the {i} button of the main Rich Text posting window.&lt;/P&gt;
&lt;P&gt;The same goes for SAS code, the "little running man icon" will even imitate most of the coloring fo the SAS Enhanced Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, you're missing an &lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;locale=de" target="_blank"&gt;input&lt;/A&gt; statement.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 12:52:08 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-02-02T12:52:08Z</dc:date>
    <item>
      <title>How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433494#M107475</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am now trying to use length command with several hundreds of variables.&lt;/P&gt;&lt;P&gt;Since the number of variables are too many, I want to express variables in a short and efficient way.&lt;/P&gt;&lt;P&gt;Following&amp;nbsp;is the code I designed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;length name $ 100 secid $ 100 (time1-204) ($ 100);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know something is wrong on the last part of the code, but can't figure out how to fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please give me some help.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433494#M107475</guid>
      <dc:creator>Sejin</dc:creator>
      <dc:date>2018-02-02T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433495#M107476</link>
      <description>&lt;P&gt;Close. Do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length name $ 100 secid $ 100 time1-time204 $ 100;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433495#M107476</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-02T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433496#M107477</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length name $ 100 secid $ 100 time1-time204 $ 100;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433496#M107477</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-02T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433497#M107478</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Close. Do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length name $ 100 secid $ 100 time1-time204 $ 100;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Beat me by 15 seconds &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433497#M107478</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-02T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433503#M107480</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18274i5D99F61DB839BBA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick&amp;nbsp;reply!&lt;/P&gt;&lt;P&gt;But this is what&amp;nbsp;I got with no outcome..&lt;/P&gt;&lt;P&gt;Do you know what is another error that needs to be fixed?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433503#M107480</guid>
      <dc:creator>Sejin</dc:creator>
      <dc:date>2018-02-02T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433505#M107481</link>
      <description>&lt;P&gt;You probably do not see any ERRORS in your log, only NOTES that the variables are uninitialized. You probably need an &lt;A href="http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0oaql83drile0n141pdacojq97s.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da" target="_self"&gt;INPUT Statement&lt;/A&gt; after your INFILE Statement.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433505#M107481</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-02T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433507#M107483</link>
      <description>&lt;P&gt;A SAS log is pure text. To post it here, just use copy/paste into a window opened with the {i} button of the main Rich Text posting window.&lt;/P&gt;
&lt;P&gt;The same goes for SAS code, the "little running man icon" will even imitate most of the coloring fo the SAS Enhanced Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes, you're missing an &lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n0lrz3gb7m9e4rn137op544ddg0v.htm&amp;amp;locale=de" target="_blank"&gt;input&lt;/A&gt; statement.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 12:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433507#M107483</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-02T12:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433520#M107484</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;with several hundreds of variables." - this sounds bad already.&amp;nbsp; Does the data come from Excel by any chance?&amp;nbsp; Observations not columns is the way forward.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433520#M107484</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-02T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use length command with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433524#M107487</link>
      <description>&lt;P&gt;specifying the length of 100 bytes does not require to be done one&amp;nbsp; by one in a length statement for each variable or variable list:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w1;
set sashelp.class(drop=name);
length name  secid  time1-time204 $ 100;
run;

proc contents data=w1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-length-command-with-multiple-variables/m-p/433524#M107487</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-02-02T14:05:26Z</dc:date>
    </item>
  </channel>
</rss>

