<?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: I would need add some prefix to the  varible name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-would-need-add-some-prefix-to-the-varible-name/m-p/461421#M117384</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186332"&gt;@Pavan4&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I need&amp;nbsp; help for the&amp;nbsp; below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data new ;&lt;/P&gt;
&lt;P&gt;x ='&lt;A href="https://insider.mtb.com/rrc/Pages/relationship-banking/ezleads/cd-maturity.pdf" target="_blank"&gt;http&lt;/A&gt;://google.com';&lt;/P&gt;
&lt;P&gt;run ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would need the below output for x value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;X =&amp;nbsp; &amp;nbsp;&amp;lt;A href="&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://insider.mtb.com/rrc/Pages/relationship-banking/ezleads/cd-maturity.pdf" target="_blank"&gt;http&lt;/A&gt;://google.com'&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;" target="_blank"&amp;gt;Click Here&amp;lt;/A&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;can any body help me on this&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First thing is before assigning any value to the variable x is to define length long enough to hold the longest expected line. Otherwise the initial assignment sets the length of the variable to 17 characters and anything inserted before that would loose characters at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way:&lt;/P&gt;
&lt;PRE&gt;data new ;
   length x $ 200;
   x ='http://google.com';
   x = catt('&amp;lt;A href="',x,' "target="_blank"&amp;gt;Click Here&amp;lt;/A&amp;gt;');
   put x;
run ;&lt;/PRE&gt;
&lt;P&gt;this assumes that the single ' you showed at the end of google.com was accidentally included in a copy and paste. If that is not the case show &lt;STRONG&gt;only &lt;/STRONG&gt; the text of the desired result not something that looks like an assignment statement that won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 21:01:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-10T21:01:44Z</dc:date>
    <item>
      <title>I would need add some prefix to the  varible name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-would-need-add-some-prefix-to-the-varible-name/m-p/461373#M117363</link>
      <description>&lt;P&gt;I need&amp;nbsp; help for the&amp;nbsp; below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new ;&lt;/P&gt;&lt;P&gt;x ='&lt;A href="https://insider.mtb.com/rrc/Pages/relationship-banking/ezleads/cd-maturity.pdf" target="_blank"&gt;http&lt;/A&gt;://google.com';&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need the below output for x value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;X =&amp;nbsp; &amp;nbsp;&amp;lt;A href="&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://insider.mtb.com/rrc/Pages/relationship-banking/ezleads/cd-maturity.pdf" target="_blank"&gt;http&lt;/A&gt;://google.com'&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;" target="_blank"&amp;gt;Click Here&amp;lt;/A&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;can any body help me on this&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-would-need-add-some-prefix-to-the-varible-name/m-p/461373#M117363</guid>
      <dc:creator>Pavan4</dc:creator>
      <dc:date>2018-05-10T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: I would need add some prefix to the  varible name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-would-need-add-some-prefix-to-the-varible-name/m-p/461421#M117384</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186332"&gt;@Pavan4&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I need&amp;nbsp; help for the&amp;nbsp; below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data new ;&lt;/P&gt;
&lt;P&gt;x ='&lt;A href="https://insider.mtb.com/rrc/Pages/relationship-banking/ezleads/cd-maturity.pdf" target="_blank"&gt;http&lt;/A&gt;://google.com';&lt;/P&gt;
&lt;P&gt;run ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would need the below output for x value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;X =&amp;nbsp; &amp;nbsp;&amp;lt;A href="&amp;nbsp;&lt;/STRONG&gt;&lt;A href="https://insider.mtb.com/rrc/Pages/relationship-banking/ezleads/cd-maturity.pdf" target="_blank"&gt;http&lt;/A&gt;://google.com'&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;" target="_blank"&amp;gt;Click Here&amp;lt;/A&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;can any body help me on this&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First thing is before assigning any value to the variable x is to define length long enough to hold the longest expected line. Otherwise the initial assignment sets the length of the variable to 17 characters and anything inserted before that would loose characters at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way:&lt;/P&gt;
&lt;PRE&gt;data new ;
   length x $ 200;
   x ='http://google.com';
   x = catt('&amp;lt;A href="',x,' "target="_blank"&amp;gt;Click Here&amp;lt;/A&amp;gt;');
   put x;
run ;&lt;/PRE&gt;
&lt;P&gt;this assumes that the single ' you showed at the end of google.com was accidentally included in a copy and paste. If that is not the case show &lt;STRONG&gt;only &lt;/STRONG&gt; the text of the desired result not something that looks like an assignment statement that won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 21:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-would-need-add-some-prefix-to-the-varible-name/m-p/461421#M117384</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-10T21:01:44Z</dc:date>
    </item>
  </channel>
</rss>

