<?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 find out the longest of value for an char variable? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280611#M19310</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select max(length(SUPPORT_CUST_NAME))
  from ELTElend.ELT_SEC_SUPPORT_BY
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Jun 2016 23:33:49 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2016-06-27T23:33:49Z</dc:date>
    <item>
      <title>How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280601#M19307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an variable called "SUPPORT_CUST_NAME". It is defined as "Char" type with leng of 100. it is labled as "SupportCustName".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset name is "ELT.ELT_SEC_SUPPORT_BY".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the value of "SUPPORT_CUST_NAME"&amp;nbsp;seems chopped much less than 100. Many names are chopped. I need to find the longest value to confirm my finding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I find out the longest length of value for "SUPPORT_CUST_NAME" with its primay key "CR_APPL_NO"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with SAS code!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 22:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280601#M19307</guid>
      <dc:creator>Nancy05</dc:creator>
      <dc:date>2016-06-27T22:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280606#M19308</link>
      <description>&lt;P&gt;Before you examine the lengths, the first step would be to examine the format. &amp;nbsp;If a variable is defined as $100 but has a format of $50., you will only see the first 50 characters.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 22:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280606#M19308</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-06-27T22:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280610#M19309</link>
      <description>&lt;P&gt;How to write the code to find out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code to look at the table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data elendSUPPORTBY;
	set ELTElend.ELT_SEC_SUPPORT_BY;


Title "Support by in ELT ELEND";
proc print data= elendSUPPORTBY;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 23:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280610#M19309</guid>
      <dc:creator>Nancy05</dc:creator>
      <dc:date>2016-06-27T23:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280611#M19310</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select max(length(SUPPORT_CUST_NAME))
  from ELTElend.ELT_SEC_SUPPORT_BY
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jun 2016 23:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280611#M19310</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-06-27T23:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280612#M19311</link>
      <description>&lt;P&gt;The easiest way to find out formats would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc contents data=eltelend.elt_sec_support_by;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 00:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280612#M19311</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-06-28T00:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280640#M19312</link>
      <description>&lt;P&gt;Hi SASKiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the SAS SQL query!&amp;nbsp;The SAS query works very well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the embedded sql query follow standard SQL syntax?&amp;nbsp; Do they follow Oracle or DB2 or Microsoft standard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 03:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280640#M19312</guid>
      <dc:creator>Nancy05</dc:creator>
      <dc:date>2016-06-28T03:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280641#M19313</link>
      <description>&lt;P&gt;Hi Astounding,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. Yes. I have tried proc contents, that is how I get to know this variable SUPPORT_CUST_NAME is char type with length of 100. But somehow only display 40 chars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may due to an error in ETL process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so mcuh for help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nancy&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 04:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280641#M19313</guid>
      <dc:creator>Nancy05</dc:creator>
      <dc:date>2016-06-28T04:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find out the longest of value for an char variable?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280649#M19314</link>
      <description>&lt;P&gt;SAS SQL doesn't necessarily follow ANSI SQL standards. Most basic queries such as the one here, can be used in both Oracle and SQL. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS FEDSQL is ANSI standard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oracle SQL is different than Microsoft SQL. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SQL pass through if you want to pass a query directly to your server.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 05:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-find-out-the-longest-of-value-for-an-char-variable/m-p/280649#M19314</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-28T05:09:50Z</dc:date>
    </item>
  </channel>
</rss>

