<?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 tel me the length of the variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21548#M4578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data te;&lt;/P&gt;&lt;P&gt;author='Agatha Christie';&lt;/P&gt;&lt;P&gt;sc=scan(author,1,',');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the dataset tel me the length of the varaible sc and also why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 14:08:14 GMT</pubDate>
    <dc:creator>King</dc:creator>
    <dc:date>2011-06-27T14:08:14Z</dc:date>
    <item>
      <title>tel me the length of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21548#M4578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data te;&lt;/P&gt;&lt;P&gt;author='Agatha Christie';&lt;/P&gt;&lt;P&gt;sc=scan(author,1,',');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the dataset tel me the length of the varaible sc and also why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 14:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21548#M4578</guid>
      <dc:creator>King</dc:creator>
      <dc:date>2011-06-27T14:08:14Z</dc:date>
    </item>
    <item>
      <title>tel me the length of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21549#M4579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; The returned value, without any LENGTH statement should be $200, which you can verify by running PROC CONTENTS. The doc explains why the length is 200:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm&lt;/A&gt; when it says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"In a DATA step, if the SCAN function returns a value to a variable that has not yet been given a length, then that variable is given a length of 200 characters. If you need the SCAN function to assign to a variable a word that is longer than 200 characters, then you should explicitly specify the length of that variable."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, of course, if you want the SCAN function to assign a length SHORTER than 200, you should also explicitly specify the length of the new variable in a LENGTH statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 14:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21549#M4579</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-27T14:21:42Z</dc:date>
    </item>
    <item>
      <title>tel me the length of the variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21550#M4580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks alot&amp;nbsp; ms Cynthia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 14:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/tel-me-the-length-of-the-variable/m-p/21550#M4580</guid>
      <dc:creator>King</dc:creator>
      <dc:date>2011-06-27T14:58:34Z</dc:date>
    </item>
  </channel>
</rss>

