<?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 proc http Qualtrics.com in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-http-Qualtrics-com/m-p/854633#M42029</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have getting the surveyid from a previous script (not included).&lt;/P&gt;
&lt;P&gt;and I am able to execute the script below but, I am unable to replace the surveyID by it macro variable .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone know how to do that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let SurveyID=SV*************MwSAyrGK;

options set=SSLREQCERT="allow";
filename rsp temp;
proc http
url="https://ca1.qualtrics.com/API/v3/responseexports/"
method= "POST"
in='{"format" : "csv","surveyId" : "SV******QMwSAyrGK"}'
out=rsp;
 headers   
   'x-api-token'= &amp;amp;Api_Token.
   'Content-Type'='application/json';
run;
But I would like to replace the value of the surveyid by a macro variable for safety purpose and automation.

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Jan 2023 17:05:57 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2023-01-19T17:05:57Z</dc:date>
    <item>
      <title>proc http Qualtrics.com</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-http-Qualtrics-com/m-p/854633#M42029</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have getting the surveyid from a previous script (not included).&lt;/P&gt;
&lt;P&gt;and I am able to execute the script below but, I am unable to replace the surveyID by it macro variable .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone know how to do that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let SurveyID=SV*************MwSAyrGK;

options set=SSLREQCERT="allow";
filename rsp temp;
proc http
url="https://ca1.qualtrics.com/API/v3/responseexports/"
method= "POST"
in='{"format" : "csv","surveyId" : "SV******QMwSAyrGK"}'
out=rsp;
 headers   
   'x-api-token'= &amp;amp;Api_Token.
   'Content-Type'='application/json';
run;
But I would like to replace the value of the surveyid by a macro variable for safety purpose and automation.

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-http-Qualtrics-com/m-p/854633#M42029</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-01-19T17:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc http Qualtrics.com</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-http-Qualtrics-com/m-p/854638#M42030</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am unable to replace the surveyID by it macro variable .&lt;CODE class=" language-sas"&gt;
&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Because the single quotes prevent the resolution of &lt;FONT face="courier new,courier"&gt;&amp;amp;SurveyID&lt;/FONT&gt;? If so, use double quotes instead and duplicate the inner double quotes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;in="{""format"" : ""csv"",""surveyId"" : ""&amp;amp;SurveyID""}"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-http-Qualtrics-com/m-p/854638#M42030</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-01-19T17:33:43Z</dc:date>
    </item>
  </channel>
</rss>

