<?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 HTTp is not connecting and retrive data from following URL in SAS Std, it work when use SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-HTTp-is-not-connecting-and-retrive-data-from-following-URL/m-p/849192#M335731</link>
    <description>&lt;P&gt;I recommend that you keep the URL all on one line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;filename out TEMP;
/*libname icic '/home/mravi/work/icici';*/


proc http
url='https://www1.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp?symbolCode=-10006&amp;amp;symbol=NIFTY&amp;amp;symbol=NIFTY&amp;amp;instrument=-&amp;amp;date=-&amp;amp;segmentLink=17&amp;amp;symbolCount=2&amp;amp;segmentLink=17'
out=out
method="get";
run;

data new;
infile out truncover;
input var $5000.;
run;&lt;/LI-CODE&gt;
&lt;P&gt;Are you using SAS OnDemand for Academics for this? You might be running out of space or otherwise running afoul of a policy to download large data. Or, perhaps your environment cannot connect outside a firewall? &lt;A href="https://blogs.sas.com/content/sasdummy/2018/01/23/check-json-and-http/" target="_self"&gt;Try this test to confirm&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, the code works in SAS Studio (I tried in SAS Studio in SAS Viya v2022.09)&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 17:36:29 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2022-12-12T17:36:29Z</dc:date>
    <item>
      <title>Proc HTTp is not connecting and retrive data from following URL in SAS Std, it work when use SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-HTTp-is-not-connecting-and-retrive-data-from-following-URL/m-p/849182#M335730</link>
      <description>&lt;P&gt;filename out TEMP;&lt;BR /&gt;/*libname icic '/home/mravi/work/icici';*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc http&lt;BR /&gt;url='&lt;A href="https://www1.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp" target="_blank"&gt;https://www1.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp&lt;/A&gt;?&lt;BR /&gt;symbolCode=-10006&amp;amp;symbol=NIFTY&amp;amp;symbol=NIFTY&amp;amp;instrument=-&amp;amp;date=&lt;BR /&gt;-&amp;amp;segmentLink=17&amp;amp;symbolCount=2&amp;amp;segmentLink=17'&lt;BR /&gt;out=out&lt;BR /&gt;method="get";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data new;&lt;BR /&gt;infile out truncover;&lt;BR /&gt;input var $5000.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 17:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-HTTp-is-not-connecting-and-retrive-data-from-following-URL/m-p/849182#M335730</guid>
      <dc:creator>rvsidhu035</dc:creator>
      <dc:date>2022-12-12T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc HTTp is not connecting and retrive data from following URL in SAS Std, it work when use SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-HTTp-is-not-connecting-and-retrive-data-from-following-URL/m-p/849192#M335731</link>
      <description>&lt;P&gt;I recommend that you keep the URL all on one line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;filename out TEMP;
/*libname icic '/home/mravi/work/icici';*/


proc http
url='https://www1.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp?symbolCode=-10006&amp;amp;symbol=NIFTY&amp;amp;symbol=NIFTY&amp;amp;instrument=-&amp;amp;date=-&amp;amp;segmentLink=17&amp;amp;symbolCount=2&amp;amp;segmentLink=17'
out=out
method="get";
run;

data new;
infile out truncover;
input var $5000.;
run;&lt;/LI-CODE&gt;
&lt;P&gt;Are you using SAS OnDemand for Academics for this? You might be running out of space or otherwise running afoul of a policy to download large data. Or, perhaps your environment cannot connect outside a firewall? &lt;A href="https://blogs.sas.com/content/sasdummy/2018/01/23/check-json-and-http/" target="_self"&gt;Try this test to confirm&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, the code works in SAS Studio (I tried in SAS Studio in SAS Viya v2022.09)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 17:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-HTTp-is-not-connecting-and-retrive-data-from-following-URL/m-p/849192#M335731</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-12-12T17:36:29Z</dc:date>
    </item>
  </channel>
</rss>

