<?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 String limitation of 255 characters in Global Function/UDF of Data Management Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207550#M4730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to pass a string to a Global Function/UDF that I've been working on. The purpose of the UDF is to take a string, delimited by pipes (|), remove any duplicate values from the string, and return a string without any duplicate values back, also delimited by pipes. The problem I have is that the string returned is always &amp;lt;= 255 characters, when in some instances it should be more than 255.&amp;nbsp; I know that strings in the Expression node automatically default to 255 if there is no explicit size given. I assume that the format of setting the size of a string in a UDF would be similar to the format of setting the size in an Expression node, e.g. String (5000) input, but don't know for sure. Is there a way passed this limitation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 18:45:56 GMT</pubDate>
    <dc:creator>kevind21</dc:creator>
    <dc:date>2015-04-30T18:45:56Z</dc:date>
    <item>
      <title>String limitation of 255 characters in Global Function/UDF of Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207550#M4730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to pass a string to a Global Function/UDF that I've been working on. The purpose of the UDF is to take a string, delimited by pipes (|), remove any duplicate values from the string, and return a string without any duplicate values back, also delimited by pipes. The problem I have is that the string returned is always &amp;lt;= 255 characters, when in some instances it should be more than 255.&amp;nbsp; I know that strings in the Expression node automatically default to 255 if there is no explicit size given. I assume that the format of setting the size of a string in a UDF would be similar to the format of setting the size in an Expression node, e.g. String (5000) input, but don't know for sure. Is there a way passed this limitation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 18:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207550#M4730</guid>
      <dc:creator>kevind21</dc:creator>
      <dc:date>2015-04-30T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation of 255 characters in Global Function/UDF of Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207551#M4731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct that the in stating that string symbols may be declared with a size. If you assign a value to a string symbol, it is truncated/increated to this size. If you do not specific a size, 255 is used by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example from the Expression Reference document for format of setting the string size:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string(20) person&lt;/P&gt;&lt;P&gt;integer x&lt;/P&gt;&lt;P&gt;integer y&lt;/P&gt;&lt;P&gt;integer age&lt;/P&gt;&lt;P&gt;Age=10&lt;/P&gt;&lt;P&gt;if Age &amp;lt; 20 then&lt;/P&gt;&lt;P&gt;person="child"&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;person="adult"&lt;/P&gt;&lt;P&gt;if Age==10&lt;/P&gt;&lt;P&gt;begin&lt;/P&gt;&lt;P&gt;x=50&lt;/P&gt;&lt;P&gt;y=20&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;// nested if/else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-shawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 15:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207551#M4731</guid>
      <dc:creator>skillman</dc:creator>
      <dc:date>2015-05-01T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation of 255 characters in Global Function/UDF of Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207552#M4732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is also a system macro that you might want to look into.&amp;nbsp; It's called EXPRESS_MAX_STRING_LENGTH.&amp;nbsp; This specifies the maximum length of strings declared in expression nodes.&amp;nbsp; You could trying specifying a value in the .cfg file or in a node at the beginning of your job.&amp;nbsp; It can be up to 5,242,880 bytes, actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, with this new setting, you could declare a very long string in your expression node as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(65000) myString&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(100000) myLongStr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this might help you as well.&amp;nbsp; I use it quite frequently.&amp;nbsp; It's spelled out in the Installation and Configuration guide for the Studio, if you'd like to look into it further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 17:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207552#M4732</guid>
      <dc:creator>TonyL_</dc:creator>
      <dc:date>2015-05-01T17:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation of 255 characters in Global Function/UDF of Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207553#M4733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following page in the Data Management Studio installation guide includes a description of the EXPRESS_MAX_STRING_LENGTH option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/dmpdmsicg/67219/HTML/default/viewer.htm#p0ibabqkmx9du0n12me55xuq5bae.htm" title="http://support.sas.com/documentation/cdl/en/dmpdmsicg/67219/HTML/default/viewer.htm#p0ibabqkmx9du0n12me55xuq5bae.htm"&gt;DataFlux(R) Data Management Studio 2.6: Installation and Configuration Guide&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 17:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207553#M4733</guid>
      <dc:creator>DaveR_SAS</dc:creator>
      <dc:date>2015-05-01T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: String limitation of 255 characters in Global Function/UDF of Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207554#M4734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Thank you everyone for your quick responses! I didn't clarify my dilemma enough. I am setting the size of my string variable to greater than 255 i.e. (string (5000) longStr) in the expression node, and I'm passing it as a parameter to my UDF. In the UDF I store the parameter in a string that has a size greater than 255. It eventually gets passed into an output string which I declare as having more than 255 characters. It's just when the UDF returns the value, it always returns only 255 characters. I guess it's more a behavior of the UDF than it is the actual expression node. I wasn't sure if I was doing something wrong. I will try the idea of the EXPRESS_MAX_STRENGTH_LENGTH. Thanks again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 14:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/String-limitation-of-255-characters-in-Global-Function-UDF-of/m-p/207554#M4734</guid>
      <dc:creator>kevind21</dc:creator>
      <dc:date>2015-05-04T14:01:50Z</dc:date>
    </item>
  </channel>
</rss>

