<?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 length and value of character variable.. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/51581#M5550</link>
    <description>data abc;&lt;BR /&gt;
address1='201 London fly';&lt;BR /&gt;
run;&lt;BR /&gt;
data abc;&lt;BR /&gt;
set abc;&lt;BR /&gt;
address=tranwrd(address1,'fly','drive');&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ques: what will be the length and value of variable 'address' in data set abc;&lt;BR /&gt;
&lt;BR /&gt;
in notes i found answer like  length=200 and value is '201 London drive'.....please ensure it is right...what you think abt the answer..tell me</description>
    <pubDate>Mon, 06 Jul 2009 07:36:49 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-06T07:36:49Z</dc:date>
    <item>
      <title>length and value of character variable..</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/51581#M5550</link>
      <description>data abc;&lt;BR /&gt;
address1='201 London fly';&lt;BR /&gt;
run;&lt;BR /&gt;
data abc;&lt;BR /&gt;
set abc;&lt;BR /&gt;
address=tranwrd(address1,'fly','drive');&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ques: what will be the length and value of variable 'address' in data set abc;&lt;BR /&gt;
&lt;BR /&gt;
in notes i found answer like  length=200 and value is '201 London drive'.....please ensure it is right...what you think abt the answer..tell me</description>
      <pubDate>Mon, 06 Jul 2009 07:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/51581#M5550</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-06T07:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: length and value of character variable..</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/51582#M5551</link>
      <description>Reading the online documentation for the transwrd function I found two import sentences:&lt;BR /&gt;
"If the TRANWRD function returns a value to a variable that has not yet been assigned a length, by default the variable is assigned a length of 200."&lt;BR /&gt;
and&lt;BR /&gt;
"The value that the TRANWRD function returns has a default length of 200. You can use the LENGTH statement, before calling TRANWRD, to change the length of the value."</description>
      <pubDate>Mon, 06 Jul 2009 10:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/51582#M5551</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2009-07-06T10:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: length and value of character variable..</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/272565#M18923</link>
      <description>&lt;P&gt;While running the following program, the result from &amp;nbsp;proc print &amp;amp; proc content: &amp;nbsp;for &amp;nbsp;'&lt;SPAN&gt;&lt;U&gt;address' length is 200 &amp;amp; value is '201 London drive'&lt;/U&gt; as well as for&lt;U&gt; 'address1' length is 14 &amp;amp; value is '201 London fly&lt;/U&gt;'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;address1='201 London fly';&lt;BR /&gt;run;&lt;BR /&gt;data abc;&lt;BR /&gt;set abc;&lt;BR /&gt;address=tranwrd(address1,'fly','drive');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=abc;&lt;BR /&gt;run;&lt;BR /&gt;proc contents data=abc;&lt;BR /&gt;run;&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;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Obs address1 address 1 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;201 London fly&lt;/TD&gt;&lt;TD&gt;201 London drive&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Alphabetic List of Variables and Attributes # Variable Type Len 2 1 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;address&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;address1&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2016 20:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/length-and-value-of-character-variable/m-p/272565#M18923</guid>
      <dc:creator>BSHARMA</dc:creator>
      <dc:date>2016-05-23T20:48:38Z</dc:date>
    </item>
  </channel>
</rss>

