<?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 Determine length of values of a character variable dynamically in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751681#M236662</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a character variable with values of different lengths:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CharVar&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Region One&lt;/P&gt;
&lt;P&gt;Region Two&lt;/P&gt;
&lt;P&gt;Region Three&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to dynamically determine the lengths of these values, i.e.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;length for the first obs is 10&lt;/P&gt;
&lt;P&gt;length for the second obs is 10&lt;/P&gt;
&lt;P&gt;length for the third obs is 12&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do it?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jul 2021 10:36:46 GMT</pubDate>
    <dc:creator>JasonL</dc:creator>
    <dc:date>2021-07-02T10:36:46Z</dc:date>
    <item>
      <title>Determine length of values of a character variable dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751681#M236662</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a character variable with values of different lengths:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CharVar&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Region One&lt;/P&gt;
&lt;P&gt;Region Two&lt;/P&gt;
&lt;P&gt;Region Three&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to dynamically determine the lengths of these values, i.e.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;length for the first obs is 10&lt;/P&gt;
&lt;P&gt;length for the second obs is 10&lt;/P&gt;
&lt;P&gt;length for the third obs is 12&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do it?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 10:36:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751681#M236662</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2021-07-02T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determine length of values of a character variable dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751687#M236664</link>
      <description>&lt;P&gt;Use the LENGTH function&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n0f6jve4kdxnh1n1m7c82fhosgih.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n0f6jve4kdxnh1n1m7c82fhosgih.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 10:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751687#M236664</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-02T10:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Determine length of values of a character variable dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751755#M236692</link>
      <description>Thanks.</description>
      <pubDate>Fri, 02 Jul 2021 14:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determine-length-of-values-of-a-character-variable-dynamically/m-p/751755#M236692</guid>
      <dc:creator>JasonL</dc:creator>
      <dc:date>2021-07-02T14:47:43Z</dc:date>
    </item>
  </channel>
</rss>

