<?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: Maximun length variable name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928800#M365468</link>
    <description>&lt;P&gt;If you want information about variables you look in Dictionary.columns.&lt;/P&gt;
&lt;P&gt;None of the variables in SASHELP.CLASS have a length of 6. Height and Weight have a length of 8, the default for numeric values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, how do you get length of 6 for Height and Weight from SASHELP.Class?&lt;/P&gt;
&lt;P&gt;Similarly&amp;nbsp; the length of MPG_Highway in SASHELP.CARS is 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to think that you are thinking of something other than the SAS variable characteristic of Length which is the number of bytes used to store the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390518"&gt;@pavank&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I want maximum variable name and length as bellow&lt;/P&gt;
&lt;P&gt;DATASET&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAX_Length_variable_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; length&lt;BR /&gt;cars :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MPG_Highway&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&lt;BR /&gt;class:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Height&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;BR /&gt;class:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;BR /&gt;buy :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Amount&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*i tried using dictionary.tables but i didn't get required output*/

proc sql;
   select maxvar 
      from dictionary.tables
      where  
            libname='SASHELP'  and memname='CARS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 09:19:02 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-05-17T09:19:02Z</dc:date>
    <item>
      <title>Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928655#M365387</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;How to find maximum length variable name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 13:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928655#M365387</guid>
      <dc:creator>pavank</dc:creator>
      <dc:date>2024-05-16T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928656#M365388</link>
      <description>&lt;P&gt;Are you looking to find the maximum length of a variable in your data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you seeking to find the maximum length that you can use for a variable in a data set?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 13:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928656#M365388</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2024-05-16T13:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928668#M365393</link>
      <description>&lt;P&gt;I want which variable has max length with that variable name&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 14:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928668#M365393</guid>
      <dc:creator>pavank</dc:creator>
      <dc:date>2024-05-16T14:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928672#M365394</link>
      <description>&lt;P&gt;Is this what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=datasetname noprint out=_contents_;
run;

proc sql;
    create table max_length as select * from _contents_
    having length=max(length);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 May 2024 14:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928672#M365394</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-16T14:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928676#M365395</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390518"&gt;@pavank&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want which variable has max length with that variable name&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Where? Does this question relate to a single data set or multiple data sets in a library?&lt;/P&gt;
&lt;P&gt;For a given single data set that question is essentially meaningless as phrased as there is only on variable with a given name. If want to know the maximum length value for a given variable that makes a bit more sense but may have multiple values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For discussion purposes let's use the data set SASHELP.CLASS since that should be available to you.&lt;/P&gt;
&lt;P&gt;Now for the variable with the catchy name of "NAME" what would the answer to your question be?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 14:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928676#M365395</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-16T14:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928715#M365423</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390518"&gt;@pavank&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want which variable has max length with that variable name&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try using different words to express what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to find then NAME of the variable in a dataset that is defined with the largest storage length?&amp;nbsp; You can just query the metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want the find the NAME of the variable that has the longest actual value?&amp;nbsp; I would assume here you are talking about only the character variables?&amp;nbsp; Do you want to do this separately for each OBSERVATION?&amp;nbsp; Or do you want to find the variable that has the longest value across all of the observations?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what do you want in case of ties?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 17:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928715#M365423</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-05-16T17:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928798#M365466</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I want maximum variable name and length as bellow&lt;/P&gt;
&lt;P&gt;DATASET&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAX_Length_variable_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; length&lt;BR /&gt;cars :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MPG_Highway&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&lt;BR /&gt;class:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Height&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;BR /&gt;class:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;BR /&gt;buy :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Amount&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*i tried using dictionary.tables but i didn't get required output*/

proc sql;
   select maxvar 
      from dictionary.tables
      where  
            libname='SASHELP'  and memname='CARS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2024 07:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928798#M365466</guid>
      <dc:creator>pavank</dc:creator>
      <dc:date>2024-05-17T07:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928800#M365468</link>
      <description>&lt;P&gt;If you want information about variables you look in Dictionary.columns.&lt;/P&gt;
&lt;P&gt;None of the variables in SASHELP.CLASS have a length of 6. Height and Weight have a length of 8, the default for numeric values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, how do you get length of 6 for Height and Weight from SASHELP.Class?&lt;/P&gt;
&lt;P&gt;Similarly&amp;nbsp; the length of MPG_Highway in SASHELP.CARS is 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to think that you are thinking of something other than the SAS variable characteristic of Length which is the number of bytes used to store the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390518"&gt;@pavank&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I want maximum variable name and length as bellow&lt;/P&gt;
&lt;P&gt;DATASET&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAX_Length_variable_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; length&lt;BR /&gt;cars :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MPG_Highway&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&lt;BR /&gt;class:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Height&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;BR /&gt;class:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Weight&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6&lt;BR /&gt;buy :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Amount&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*i tried using dictionary.tables but i didn't get required output*/

proc sql;
   select maxvar 
      from dictionary.tables
      where  
            libname='SASHELP'  and memname='CARS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 09:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928800#M365468</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-17T09:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Maximun length variable name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928803#M365469</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; said: "Try using different words to express what you want." And then &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390518"&gt;@pavank&lt;/a&gt; replied: "I want maximum variable name and length". Essentially the same words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/390518"&gt;@pavank&lt;/a&gt;&amp;nbsp;When someone asks for information, or when someone asks you to clarify, repeating the same information is not helpful, and doesn't move us closer to helping you get an answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you are interested in? ==&amp;gt; Find the variable name with the most letters in the variable name &amp;lt;== (note: different words used)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=sashelp.cars noprint out=_contents_;
run;

proc sql;
    create table num_letters as select name from _contents_ 
    having length(name)=max(length(name));
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 10:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Maximun-length-variable-name/m-p/928803#M365469</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-17T10:12:00Z</dc:date>
    </item>
  </channel>
</rss>

