<?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 passing parameter using Proc http get method. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744777#M80640</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am attempting to kickstart a job on an API.&amp;nbsp; I am able to get a valid response without sending the _since parameter in the below curl command.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;curl -X GET 'https://api.bcda.cms.gov/api/v1/Patient/$export?&amp;amp;_since=2020-02-13T08:00:00.000-05:00' \
	-H "Accept: application/fhir+json" \
	-H "Prefer: respond-async" \
	-H "Authorization: Bearer {access_token}"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Here is my Proc http procedure, alos i have tried passing the _since parameter using IN but no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Link for API documentation:&lt;A href="https://bcda.cms.gov/build.html#requesting-since-with-Patient" target="_blank"&gt;https://bcda.cms.gov/build.html#requesting-since-with-Patient&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	proc http         		
			url="https://api.bcda.cms.gov/api/v1/Patient/$export"         
         	out=jobresp
        	method="GET"
         	headerout =jobhead;
            headers "Accept"="application/fhir+json"
        			"Prefer"="respond-async"
        			"Authorization"="Bearer &amp;amp;access_token. ";
		run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 31 May 2021 13:41:12 GMT</pubDate>
    <dc:creator>khandelwalanmol</dc:creator>
    <dc:date>2021-05-31T13:41:12Z</dc:date>
    <item>
      <title>passing parameter using Proc http get method.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744777#M80640</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am attempting to kickstart a job on an API.&amp;nbsp; I am able to get a valid response without sending the _since parameter in the below curl command.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;curl -X GET 'https://api.bcda.cms.gov/api/v1/Patient/$export?&amp;amp;_since=2020-02-13T08:00:00.000-05:00' \
	-H "Accept: application/fhir+json" \
	-H "Prefer: respond-async" \
	-H "Authorization: Bearer {access_token}"&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Here is my Proc http procedure, alos i have tried passing the _since parameter using IN but no success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Link for API documentation:&lt;A href="https://bcda.cms.gov/build.html#requesting-since-with-Patient" target="_blank"&gt;https://bcda.cms.gov/build.html#requesting-since-with-Patient&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	proc http         		
			url="https://api.bcda.cms.gov/api/v1/Patient/$export"         
         	out=jobresp
        	method="GET"
         	headerout =jobhead;
            headers "Accept"="application/fhir+json"
        			"Prefer"="respond-async"
        			"Authorization"="Bearer &amp;amp;access_token. ";
		run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 May 2021 13:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744777#M80640</guid>
      <dc:creator>khandelwalanmol</dc:creator>
      <dc:date>2021-05-31T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameter using Proc http get method.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744778#M80641</link>
      <description>&lt;P&gt;Do you have a working curl command or not?&amp;nbsp; Your text says you were able to use curl without SINCE parameter, but your example CURL command syntax appears to have the &lt;STRONG&gt;&amp;amp;_since=&lt;/STRONG&gt; in the URL.&amp;nbsp; And your example SAS code does NOT have that parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to pass a URL with &amp;amp;_since in it then quote the string using single quotes to prevent the macro processor from trying to evaluate &amp;amp;_SINCE as a reference to a macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc http         		
  url='https://api.bcda.cms.gov/api/v1/Patient/$export?&amp;amp;_since=2020-02-13T08:00:00.000-05:00'
  out=jobresp
  method="GET"
  headerout =jobhead
;
  headers
    "Accept"="application/fhir+json"
    "Prefer"="respond-async"
    "Authorization"="Bearer &amp;amp;access_token."
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 May 2021 13:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/passing-parameter-using-Proc-http-get-method/m-p/744778#M80641</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-31T13:51:50Z</dc:date>
    </item>
  </channel>
</rss>

