<?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 rawUpload REST API  in combination with PROC HTTP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/838925#M331711</link>
    <description>&lt;P&gt;I get an error after submitting this code. How to fix this.&lt;BR /&gt;I could not find a proc http example with #rawUpload&lt;BR /&gt;&lt;BR /&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;BR /&gt;%let baseurl=%sysfunc(getoption(SERVICESBASEURL)); proc http method=POST url="&amp;amp;baseurl./files/files/#rawUpload" in = 'sample file bytes' oauth_bearer = sas_services; debug level=1; headers 'Accept'= 'application/vnd.sas.collection+json'; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 17 Oct 2022 09:59:51 GMT</pubDate>
    <dc:creator>MAGG</dc:creator>
    <dc:date>2022-10-17T09:59:51Z</dc:date>
    <item>
      <title>rawUpload REST API  in combination with PROC HTTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/838925#M331711</link>
      <description>&lt;P&gt;I get an error after submitting this code. How to fix this.&lt;BR /&gt;I could not find a proc http example with #rawUpload&lt;BR /&gt;&lt;BR /&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;&lt;BR /&gt;%let baseurl=%sysfunc(getoption(SERVICESBASEURL)); proc http method=POST url="&amp;amp;baseurl./files/files/#rawUpload" in = 'sample file bytes' oauth_bearer = sas_services; debug level=1; headers 'Accept'= 'application/vnd.sas.collection+json'; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 17 Oct 2022 09:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/838925#M331711</guid>
      <dc:creator>MAGG</dc:creator>
      <dc:date>2022-10-17T09:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: rawUpload REST API  in combination with PROC HTTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/839178#M331815</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In the code you posted, the &lt;FONT face="courier new,courier"&gt;#rawupload&lt;/FONT&gt; is part of the URI:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc http &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;method=POST&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;url="&amp;amp;baseurl./files/files/&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;#rawUpload&lt;/FONT&gt;&lt;/STRONG&gt;" &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a URI, the # indicates a &lt;STRONG&gt;named anchor&lt;/STRONG&gt;, expressed in the HTML as an ID tag, in an HTML document. I've never seen one used in an API URI before.&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;You will need to refer to your API documentation to properly construct the URI for your PROC HTTP step.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To clarify what I mean by a named anchor, this URL leads to the SAS documentation for the DOLLAR format:&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_026/leforinforref/p03sgbuduqemljn1nqj7qm1leql9.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_026/leforinforref/p03sgbuduqemljn1nqj7qm1leql9.htm&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But I want to send you a link that will take you straight to the Syntax portion of the page:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASJedi_1-1666094849139.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76271i5865827E898156A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_1-1666094849139.png" alt="SASJedi_1-1666094849139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I inspect the page source and see the named anchor (ID) encoded in the HTML:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;h2 class="xisDoc-title" id="&lt;FONT color="#FF0000"&gt;p13eaxol6sdchqn1atunoasthxge&lt;/FONT&gt;"&amp;gt;Syntax&amp;lt;/h2&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So I add the named anchor to the URL:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_026/leforinforref/p03sgbuduqemljn1nqj7qm1leql9.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_026/leforinforref/p03sgbuduqemljn1nqj7qm1leql9.htm&lt;/A&gt;&lt;FONT color="#FF0000"&gt;#p13eaxol6sdchqn1atunoasthxge&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;And the link now leads straight to the Syntax section:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASJedi_2-1666095097450.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76272i9497EE70F0F4B218/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASJedi_2-1666095097450.png" alt="SASJedi_2-1666095097450.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 12:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/839178#M331815</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2022-10-18T12:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: rawUpload REST API  in combination with PROC HTTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/839265#M331846</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the the suggestion!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The official api-documentation is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'am still interpreting this in a strict literal manner. In the documention there is nothing&amp;nbsp; one should replace the # with something else. But maybe I'm wrong&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MAGG_0-1666119937213.png" style="width: 959px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76284iFEAFAEF1CB150551/image-dimensions/959x277?v=v2" width="959" height="277" role="button" title="MAGG_0-1666119937213.png" alt="MAGG_0-1666119937213.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 19:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rawUpload-REST-API-in-combination-with-PROC-HTTP/m-p/839265#M331846</guid>
      <dc:creator>MAGG</dc:creator>
      <dc:date>2022-10-18T19:12:13Z</dc:date>
    </item>
  </channel>
</rss>

