<?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 Decode from Base64 using $base64x do not work in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214073#M52761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I try to decode from base64 as in the following code, it gives me no error but a wrong missing value.&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;%let id_all ='ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGU4ZDc5YTBlMzo0Yjgy:FwmOGh-t4mFlRKfLk-lsIQ:0AR0kxBhalLe5mi4kI-MjA';&lt;/P&gt;&lt;P&gt;%let id_base = %scan(&amp;amp;id_all,1,':');&lt;/P&gt;&lt;P&gt;%put k=&amp;amp;id_base;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("session_id",input("&amp;amp;id_base.",$base64x64.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put session_id=&amp;amp;session_id;&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;session_id is assigned as "f600fdf7e295e2b9:67a8388a:14e8d79a0e3:4b8" with "2" missing instead of "f600fdf7e295e2b9:67a8388a:14e8d79a0e3:4b82".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the reason for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2015 08:21:23 GMT</pubDate>
    <dc:creator>turcay</dc:creator>
    <dc:date>2015-07-30T08:21:23Z</dc:date>
    <item>
      <title>Decode from Base64 using $base64x do not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214073#M52761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I try to decode from base64 as in the following code, it gives me no error but a wrong missing value.&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;%let id_all ='ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGU4ZDc5YTBlMzo0Yjgy:FwmOGh-t4mFlRKfLk-lsIQ:0AR0kxBhalLe5mi4kI-MjA';&lt;/P&gt;&lt;P&gt;%let id_base = %scan(&amp;amp;id_all,1,':');&lt;/P&gt;&lt;P&gt;%put k=&amp;amp;id_base;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("session_id",input("&amp;amp;id_base.",$base64x64.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put session_id=&amp;amp;session_id;&lt;/P&gt;&lt;P&gt;--------------------------&lt;/P&gt;&lt;P&gt;session_id is assigned as "f600fdf7e295e2b9:67a8388a:14e8d79a0e3:4b8" with "2" missing instead of "f600fdf7e295e2b9:67a8388a:14e8d79a0e3:4b82".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the reason for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 08:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214073#M52761</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-07-30T08:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214074#M52762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run your code with SAS 9.2 I do get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;session_id=f600fdf7e295e2b9:67a8388a:14e8d79a0e3:4b82&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 15:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214074#M52762</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-07-30T15:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214075#M52763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it that you are trying to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 15:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214075#M52763</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-07-30T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214076#M52764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for confusion. Can you please also try to test it with the following code? It results in "c" missing in my environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;P&gt;%let id_all ='ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGVjY2YwMmRiYjotNzgyYw:itCgBU8hGLnXH2K6TorBYg:tqQ1fcMMtt9MaHDC57A9Xw';&lt;/P&gt;&lt;P&gt;%let id_base = %scan(&amp;amp;id_all,1,':');&lt;/P&gt;&lt;P&gt;%put k=&amp;amp;id_base;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("session_id",input("&amp;amp;id_base.",$base64x80.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put session_id=&amp;amp;session_id;&lt;/P&gt;&lt;P&gt;--------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below, you can see the information required. Please let me know if you need further information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operating System: LIN X64 .&lt;/P&gt;&lt;P&gt;For Base SAS Software ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 9.3_M2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image version information: 9.03.01M2P080112 For SAS/STAT ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 12.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image version information: 9.03.01M0P081512 For SAS/GRAPH ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 9.3_M2&lt;/P&gt;&lt;P&gt;For SAS/CONNECT ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 9.3_M2&lt;/P&gt;&lt;P&gt;For SAS Real-Time Decision Manager ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 5.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Image version information: 9.03.01M0P042413 For SAS Integration Technologies ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 9.3_M2&lt;/P&gt;&lt;P&gt;For SAS/ACCESS Interface to Oracle ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Custom version information: 9.3_M1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 11:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214076#M52764</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-08-03T11:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214077#M52765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second that, on SAS 9.2 (AIXR64) via EG 4.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 12:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214077#M52765</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-08-03T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214078#M52766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't understand what exactly you mean ? Can you explain it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 22:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214078#M52766</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-08-04T22:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214079#M52767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get no missing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;k=ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGVjY2YwMmRiYjotNzgyYw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;session_id=f600fdf7e295e2b9:67a8388a:14eccf02dbb:-782&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on sas 9.4 win64.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 03:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214079#M52767</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-08-05T03:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214080#M52768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In second case, it should not be missing actually. Decode from base64 includes “c” at the end( &lt;A href="https://www.base64decode.org/"&gt;https://www.base64decode.org/&lt;/A&gt; ). Somehow it does not in the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;String = ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGVjY2YwMmRiYjotNzgyYw&lt;/P&gt;&lt;P&gt;Desired Result = f600fdf7e295e2b9:67a8388a:14eccf02dbb:-782c&lt;/P&gt;&lt;P&gt;Not Desired Result = f600fdf7e295e2b9:67a8388a:14eccf02dbb:-782&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 09:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214080#M52768</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-08-07T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214081#M52769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That I also get, in my environment, the complete session_id including the trailing "2".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 10:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214081#M52769</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-08-07T10:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214082#M52770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would raise the issue with SAS technical support and see if they have an explanation.&lt;/P&gt;&lt;P&gt;If use your expected result and encode it using the $BASE64X. format then I get a value with two equal signs on the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGVjY2YwMmRiYjotNzgyYw==&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I decode that on the web site or with $BASE64X informat I get your expected value.&lt;/P&gt;&lt;P&gt;Your original string was length 58 bytes.&amp;nbsp; Is there some reason why inputs to BASE64 should be padded to a certain number or multiple of bytes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 12:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214082#M52770</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-07T12:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Decode from Base64 using $base64x do not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214083#M52771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually this is explained in the documentation.&amp;nbsp; &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n08zbdi5pnlo7en1mbxb80ud61nh.htm" title="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n08zbdi5pnlo7en1mbxb80ud61nh.htm"&gt;SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt;&lt;/P&gt;&lt;H2 class="xis-title" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #353535; font-size: 1.125rem; margin-top: 0.5em; background-color: #ffffff;"&gt;Details&lt;/H2&gt;&lt;P class="xis-topicContent" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; font-size: 14.0799999237061px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;DIV class="xis-paragraph" id="p0pnx8k5avmkban1wljk01ofa0qj" style="margin-top: 1.4em;"&gt;Base 64 is an industry encoding method whose encoded characters are determined by using a positional scheme that uses only ASCII characters. Several Base 64 encoding schemes have been defined by the industry for specific uses, such as email or content masking. SAS maps positions 0–61 to the characters A–Z, a–z, and 0–9. Position 62 maps to the character +, and position 63 maps to the character /.&lt;P&gt;&lt;/P&gt;&lt;P class="xis-paragraph" id="n0jnnmsbkceywun1etqynu0exqb4" style="margin-top: 1.4em;"&gt;The following are some uses of Base 64 encoding:&lt;/P&gt;&lt;DIV class="xis-listUnordered"&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class="xis-paraSimpleFirst" id="n0ja6k3ulzgd5in1bw2xh895ndb2"&gt;embed binary data in an XML file&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="xis-paraSimpleFirst" id="n1r3nzrxplgdsdn1jap26ptzlrf1"&gt;encode passwords&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="xis-paraSimpleFirst" id="p10v2qma23l1cnn1fzhvf5qf2hfy"&gt;encode URLs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="xis-paragraph" id="p0v022d93hrv5ln175v2zv7tigkf" style="margin-top: 1.4em;"&gt;The '=' character in the encoded results indicates that the results have been padded with zero bits. In order for the encoded characters to be decoded, the '=' must be included in the value to be decoded.&lt;/P&gt;&lt;P class="xis-paragraph" style="margin-top: 1.4em;"&gt;&lt;STRONG&gt;So your program needs to pad the input string with equal signs until the length is a multiple of 3.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; id_all =&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGVjY2YwMmRiYjotNzgyYw:Fwm...'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; id_base = scan(id_all,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;':'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; session_id = inputc(cats(id_base,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'==='&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;),cats(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'$base64x'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;*ceil(length(id_base)/&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'.'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_all_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) (=/);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214083#M52771</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-07T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Missing Value Problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214084#M52772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 5.0pt; background: white;"&gt;&lt;SPAN style="color: black;"&gt;@KurtBremser in which environment do you receive them as complete? ( sas version, operationg system, EG or Base SAS etc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background: white;"&gt;@Tom It comes in this way from REST service and it is a situation where we must get the session id.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 15:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214084#M52772</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-08-07T15:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Decode from Base64 using $base64x do not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214085#M52773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is macro only solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; id_all ='ZjYwMGZkZjdlMjk1ZTJiOTo2N2E4Mzg4YToxNGVjY2YwMmRiYjotNzgyYw:Fwm...';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; session_id = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(inputc(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%scan&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;id_all,1,':')===&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,$base64x80));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &amp;amp;=session_id;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'SAS Monospace';"&gt;SESSION_ID=f600fdf7e295e2b9:67a8388a:14eccf02dbb:-782c&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 16:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214085#M52773</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-07T16:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Decode from Base64 using $base64x do not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214086#M52774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt; Thank you for your detailed explanation Tom, it was a nice work. My problem was solved, thanks again&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 12:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214086#M52774</guid>
      <dc:creator>turcay</dc:creator>
      <dc:date>2015-08-12T12:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Decode from Base64 using $base64x do not work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214087#M52775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For any given string you just need 0, 1 or 2 equal signs to pad it out to a multiple of 3, but always adding 2 or more seems to work fine since the extra binary zeros are ignored.&lt;/P&gt;&lt;P&gt;You should probably raise it with SAS as a issue via the "submit a problem report" link in the footnotes at the bottom of the forum pages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 14:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Decode-from-Base64-using-base64x-do-not-work/m-p/214087#M52775</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-12T14:44:15Z</dc:date>
    </item>
  </channel>
</rss>

