<?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: proc sql md5 and oracle-db in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388378#M93145</link>
    <description>&lt;P&gt;Wow - very fast:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the select of post 1 works . It is just a select from a sas-base-table.&lt;/P&gt;&lt;P&gt;The HASH-value looks correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The i try the insert into an oracle-db:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;INSERT INTO oraSY052.STF_LFA_I_LOGFILE_2016&lt;BR /&gt;(REPORT_PATH)&lt;BR /&gt;SELECT&lt;BR /&gt;md5(SUBSTR(s.path,findc(s.path, '/',2)+1,findc(SUBSTR(s.path,findc(s.path, '/',2)+2), '/',2))) as key format $hex32.&lt;BR /&gt;from SB0520C.WRSREPORTS s;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inserted values don´t look correct ( itried it also without "&lt;SPAN&gt;as key format $hex32.&lt;/SPAN&gt;"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;“ââ!³LÙÏ&amp;#128;P&amp;#1;&amp;#21;É¿_‰&lt;BR /&gt;ÿŒé8Ž&amp;#128;]eºEéš\ÏÒˆ&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the&amp;nbsp;INSERT concerts the data and make it corrupt --&amp;gt; that´s the first problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in my real project i have a case-query in the select-statement and must concanate the md5-value with some other strings (this is an example without concanating the string):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;INSERT INTO &amp;amp;_INPUT.&lt;BR /&gt;(REPORTNAME, REPORT_PATH, SASSESSION, DESCRIPTION, CODE, SESSIONS, USERID, STAND_DATUM_ZEIT, STAND_DATUM, LAST_UPDATE)&lt;BR /&gt;SELECT&lt;BR /&gt;substr(REPORT,findc(REPORT, '/', "B") + 1),&lt;/P&gt;&lt;P&gt;CASE&lt;BR /&gt;SUBSTR(REPORT,2, findc(SUBSTR(REPORT,2), '/')-1)&lt;BR /&gt;WHEN&lt;BR /&gt;'User Folders'&lt;BR /&gt;THEN&lt;/P&gt;&lt;P&gt;md5(SUBSTR(s.path,findc(s.path, '/',2)+1,findc(SUBSTR(s.path,findc(s.path, '/',2)+2), '/',2))) as key format $hex32.&lt;/P&gt;&lt;P&gt;ELSE&lt;BR /&gt;REPORT&lt;BR /&gt;END AS REPORT_PATH,&lt;/P&gt;&lt;P&gt;SASSESSION,&lt;BR /&gt;DESCRIPTION,......&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here i get the errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14057:14091" target="_blank"&gt;Zeile 4.308:&lt;/A&gt; ERROR 73-322: Erwartet wird END.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14176:14362" target="_blank"&gt;Zeile 4.310:&lt;/A&gt; ERROR 22-322: Syntaxfehler, erwartet wird eines der folgenden: eine Zeichenkette in Hochkommata, ',', AS, FORMAT, FROM, INFORMAT, INTO, LABEL, LEN, LENGTH, TRANSCODE.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14362:14441" target="_blank"&gt;Zeile 4.310:&lt;/A&gt; ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14742:14776" target="_blank"&gt;Zeile 4.319:&lt;/A&gt; ERROR 79-322: Erwartet wird ')'.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14776:14831" target="_blank"&gt;Zeile 4.319:&lt;/A&gt; ERROR 76-322: Syntaxfehler, Anweisung wird ignoriert.&lt;/P&gt;&lt;/BLOCKQUOTE&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;Thank you very much&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 06:54:22 GMT</pubDate>
    <dc:creator>F_Röder</dc:creator>
    <dc:date>2017-08-16T06:54:22Z</dc:date>
    <item>
      <title>proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388148#M93096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a SAS-BASE table and want to insert the data into an oracle database. One value should be replaced with a MD5-Hash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;md5(SUBSTR(s.path,findc(s.path, '/',2)+1,findc(SUBSTR(s.path,findc(s.path, '/',2)+2), '/',2))) as key format $hex32.&lt;BR /&gt;from SB0520C.WRSREPORTS s;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result looks correct - like a hash-value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i must concanate the result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;'BEGINN' ||&lt;BR /&gt;md5(SUBSTR(s.path,findc(s.path, '/',2)+1,findc(SUBSTR(s.path,findc(s.path, '/',2)+2), '/',2))) as key format $hex32. ||&lt;BR /&gt;'ENDING'&lt;BR /&gt;from SB0520C.WRSREPORTS s;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;md5(SUBSTR(REPORT,findc(REPORT, '/',2)+1,findc(SUBSTR(REPORT,findc(REPORT, '/',2)+2), '/',2))) as key format $hex32.&lt;BR /&gt;__&lt;BR /&gt;__&lt;BR /&gt;73&lt;BR /&gt;22&lt;/P&gt;&lt;P&gt;76&lt;BR /&gt;60 ! length=16 ||&lt;BR /&gt;ERROR 73-322: Erwartet wird END.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntaxfehler, erwartet wird eines der folgenden: eine Zeichenkette in Hochkommata, ',', AS, FORMAT, FROM, INFORMAT,&lt;BR /&gt;INTO, LABEL, LEN, LENGTH, TRANSCODE.&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntaxfehler, Anweisung wird ignoriert.&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;I tried it with cat - but cat has only a buffer with 200 - and the string is longer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i make this?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Frank&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 13:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388148#M93096</guid>
      <dc:creator>F_Röder</dc:creator>
      <dc:date>2017-08-15T13:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388305#M93115</link>
      <description>You have placed the concatenation of ENDING in the wrong place.&lt;BR /&gt;Then I wonder what purpose does the begin and ending string have? Especially when you assign a $hex format to the column.</description>
      <pubDate>Tue, 15 Aug 2017 21:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388305#M93115</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-15T21:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388374#M93142</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that´s my target:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a log file with entries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;/User Folders/&lt;STRONG&gt;REAL_USERNAME&lt;/STRONG&gt;/Eigener Ordner/documentation.pdf&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of data protection i want to replace the "&lt;STRONG&gt;REAL_NAME&lt;/STRONG&gt;" with a MD5-Hash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a SAS-Base-Table with the Log-FIle-entries and want to insert this data into an oracle-db.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like that:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;insert into ....&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;'/' ||&lt;BR /&gt;SUBSTR(REPORT,2, findc(REPORT, '/',2)-2) ||&lt;BR /&gt;'/' ||&lt;BR /&gt;md5(SUBSTR(REPORT,findc(REPORT, '/',2)+1,findc(SUBSTR(REPORT,findc(REPORT, '/',2)+2), '/',2))) as key format $hex32. length=16 ||....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from SB0520C.WRSREPORTS s;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i must concanate each part of the string --&amp;gt; but this don´t work.&lt;/P&gt;&lt;P&gt;I tried it also with cat - but this also didn´t work and beyond this cat has just a buffer with 200 bytes - and this is to short.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i make this? Or does someone has a better solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 06:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388374#M93142</guid>
      <dc:creator>F_Röder</dc:creator>
      <dc:date>2017-08-16T06:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388376#M93143</link>
      <description>Since you are doing the operation and get the error in SAS I can't see that Oracle isn't part of the problem. &lt;BR /&gt;What happens if you correct the syntax in your first post?</description>
      <pubDate>Wed, 16 Aug 2017 06:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388376#M93143</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-16T06:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388378#M93145</link>
      <description>&lt;P&gt;Wow - very fast:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the select of post 1 works . It is just a select from a sas-base-table.&lt;/P&gt;&lt;P&gt;The HASH-value looks correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The i try the insert into an oracle-db:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;INSERT INTO oraSY052.STF_LFA_I_LOGFILE_2016&lt;BR /&gt;(REPORT_PATH)&lt;BR /&gt;SELECT&lt;BR /&gt;md5(SUBSTR(s.path,findc(s.path, '/',2)+1,findc(SUBSTR(s.path,findc(s.path, '/',2)+2), '/',2))) as key format $hex32.&lt;BR /&gt;from SB0520C.WRSREPORTS s;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inserted values don´t look correct ( itried it also without "&lt;SPAN&gt;as key format $hex32.&lt;/SPAN&gt;"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;“ââ!³LÙÏ&amp;#128;P&amp;#1;&amp;#21;É¿_‰&lt;BR /&gt;ÿŒé8Ž&amp;#128;]eºEéš\ÏÒˆ&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the&amp;nbsp;INSERT concerts the data and make it corrupt --&amp;gt; that´s the first problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in my real project i have a case-query in the select-statement and must concanate the md5-value with some other strings (this is an example without concanating the string):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;INSERT INTO &amp;amp;_INPUT.&lt;BR /&gt;(REPORTNAME, REPORT_PATH, SASSESSION, DESCRIPTION, CODE, SESSIONS, USERID, STAND_DATUM_ZEIT, STAND_DATUM, LAST_UPDATE)&lt;BR /&gt;SELECT&lt;BR /&gt;substr(REPORT,findc(REPORT, '/', "B") + 1),&lt;/P&gt;&lt;P&gt;CASE&lt;BR /&gt;SUBSTR(REPORT,2, findc(SUBSTR(REPORT,2), '/')-1)&lt;BR /&gt;WHEN&lt;BR /&gt;'User Folders'&lt;BR /&gt;THEN&lt;/P&gt;&lt;P&gt;md5(SUBSTR(s.path,findc(s.path, '/',2)+1,findc(SUBSTR(s.path,findc(s.path, '/',2)+2), '/',2))) as key format $hex32.&lt;/P&gt;&lt;P&gt;ELSE&lt;BR /&gt;REPORT&lt;BR /&gt;END AS REPORT_PATH,&lt;/P&gt;&lt;P&gt;SASSESSION,&lt;BR /&gt;DESCRIPTION,......&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here i get the errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14057:14091" target="_blank"&gt;Zeile 4.308:&lt;/A&gt; ERROR 73-322: Erwartet wird END.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14176:14362" target="_blank"&gt;Zeile 4.310:&lt;/A&gt; ERROR 22-322: Syntaxfehler, erwartet wird eines der folgenden: eine Zeichenkette in Hochkommata, ',', AS, FORMAT, FROM, INFORMAT, INTO, LABEL, LEN, LENGTH, TRANSCODE.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14362:14441" target="_blank"&gt;Zeile 4.310:&lt;/A&gt; ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14742:14776" target="_blank"&gt;Zeile 4.319:&lt;/A&gt; ERROR 79-322: Erwartet wird ')'.&lt;BR /&gt;&lt;BR /&gt;&lt;IMG border="0" /&gt;&amp;nbsp;&lt;A href="SELECT:14776:14831" target="_blank"&gt;Zeile 4.319:&lt;/A&gt; ERROR 76-322: Syntaxfehler, Anweisung wird ignoriert.&lt;/P&gt;&lt;/BLOCKQUOTE&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;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 06:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388378#M93145</guid>
      <dc:creator>F_Röder</dc:creator>
      <dc:date>2017-08-16T06:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388379#M93146</link>
      <description>&lt;P&gt;I have forgotten:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think - this is no oracle problem - just a sas problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 06:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388379#M93146</guid>
      <dc:creator>F_Röder</dc:creator>
      <dc:date>2017-08-16T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388387#M93149</link>
      <description>&lt;P&gt;You still have a syntax error, you can't have "as key format=$hex32." and the continue with the case statement.&lt;/P&gt;
&lt;P&gt;the as... part must come at the very end of the column definition.&lt;/P&gt;
&lt;P&gt;But as I understand the latest version of the code the as key is obsolete, your are using report_path as the en result of your columns definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you get these type of syntax errors, start with simplifying the code until it works, then add things step by step.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 08:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388387#M93149</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-16T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388392#M93152</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36236"&gt;@F_Röder&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Below the code part which creates the md5() value using correct syntax. What's left is to pull your input string appart and recombine it but I believe you'll manage this on your own.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  str='/User Folders/REAL_USERNAME/Eigener Ordner/documentation.pdf';
  output;
run;

proc sql;
  create table want as
    select
      put(md5(scan(str,2,'/')),$hex32.) as want
    from have
    ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In case source and target table are both in Oracle then I would use explicit pass-through Oracle SQL code. There are Oracle functions which can do the same than what you're doing here in SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 09:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388392#M93152</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-16T09:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql md5 and oracle-db</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388734#M93229</link>
      <description>&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works great:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put(md5(scan(str,2,'/')),$hex32.) as want&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also concatenating this with other&amp;nbsp;strings - something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'FIRST_STRING' || put(md5(scan(str,2,'/')),$hex32.) || 'THIRD_STRING'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 10:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-md5-and-oracle-db/m-p/388734#M93229</guid>
      <dc:creator>F_Röder</dc:creator>
      <dc:date>2017-08-17T10:30:48Z</dc:date>
    </item>
  </channel>
</rss>

