<?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: Encrypting Values using Tranwrd function in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Encrypting-Values-using-Tranwrd-function/m-p/504752#M1017</link>
    <description>&lt;P&gt;So I resolved soon after I posted.&lt;/P&gt;&lt;P&gt;I have to increase length of the variable.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;Added this piece---length encrypt_names $512.;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any better ways to encrypt values are more than welcome. Thank You&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let multi =3 ;
%let k =  359;
%let gap =  9;

data encrypt ;
set sashelp.class;
length encrypt_names $512.;
Encrypt_names = name;
i = input(&amp;amp;k., best.);
do old=     
           'a','b','c','d','e','f','g','h','i','j',
                'k','l','m','n','o','p','q','r','s','t',
                'u','v','w','x','y','z',
           'A','B','C','D','E','F','G','H','I','J',
                'K','L','M','N','O','P','Q','R','S','T',
                'U','V','W','X','Y','Z'
           ;
     new=put(i,&amp;amp;multi..);
     encrypt_names= tranwrd(encrypt_names,old,new);
     i+input(&amp;amp;gap.,best.);
end;
drop i new old;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 15:21:26 GMT</pubDate>
    <dc:creator>david27</dc:creator>
    <dc:date>2018-10-16T15:21:26Z</dc:date>
    <item>
      <title>Encrypting Values using Tranwrd function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Encrypting-Values-using-Tranwrd-function/m-p/504751#M1016</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following this SAS Paper-- &lt;A href="http://support.sas.com/resources/papers/proceedings17/0949-2017.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings17/0949-2017.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to encrypt a variable using tranwrd function. Below is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The problem is:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;It gives me same value for Jane and Janet. How can&amp;nbsp;I rectify this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let multi =3 ;
%let k =  359;
%let gap =  9;

data encrypt ;
set sashelp.class;
Encrypt_names = name;
i = input(&amp;amp;k., best.);
do old=     
           'a','b','c','d','e','f','g','h','i','j',
                'k','l','m','n','o','p','q','r','s','t',
                'u','v','w','x','y','z',
           'A','B','C','D','E','F','G','H','I','J',
                'K','L','M','N','O','P','Q','R','S','T',
                'U','V','W','X','Y','Z'
           ;
     new=put(i,&amp;amp;multi..);
     encrypt_names= tranwrd(encrypt_names,old,new);
     i+input(&amp;amp;gap.,best.);
end;
drop i new old;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tranwrd.PNG" style="width: 590px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24049iC57094D26DEEC418/image-size/large?v=v2&amp;amp;px=999" role="button" title="tranwrd.PNG" alt="tranwrd.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Encrypting-Values-using-Tranwrd-function/m-p/504751#M1016</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2018-10-16T15:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypting Values using Tranwrd function</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Encrypting-Values-using-Tranwrd-function/m-p/504752#M1017</link>
      <description>&lt;P&gt;So I resolved soon after I posted.&lt;/P&gt;&lt;P&gt;I have to increase length of the variable.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;Added this piece---length encrypt_names $512.;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any better ways to encrypt values are more than welcome. Thank You&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let multi =3 ;
%let k =  359;
%let gap =  9;

data encrypt ;
set sashelp.class;
length encrypt_names $512.;
Encrypt_names = name;
i = input(&amp;amp;k., best.);
do old=     
           'a','b','c','d','e','f','g','h','i','j',
                'k','l','m','n','o','p','q','r','s','t',
                'u','v','w','x','y','z',
           'A','B','C','D','E','F','G','H','I','J',
                'K','L','M','N','O','P','Q','R','S','T',
                'U','V','W','X','Y','Z'
           ;
     new=put(i,&amp;amp;multi..);
     encrypt_names= tranwrd(encrypt_names,old,new);
     i+input(&amp;amp;gap.,best.);
end;
drop i new old;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Encrypting-Values-using-Tranwrd-function/m-p/504752#M1017</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2018-10-16T15:21:26Z</dc:date>
    </item>
  </channel>
</rss>

