BookmarkSubscribeRSS Feed
rvsidhu035
Quartz | Level 8

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&symbol=NIFTY&symbol=NIFTY&instrument=-&date=
-&segmentLink=17&symbolCount=2&segmentLink=17'
out=out
method="get";
run;

data new;
infile out truncover;
input var $5000.;
run;

1 REPLY 1
ChrisHemedinger
Community Manager

I recommend that you keep the URL all on one line:

 

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&symbol=NIFTY&symbol=NIFTY&instrument=-&date=-&segmentLink=17&symbolCount=2&segmentLink=17'
out=out
method="get";
run;

data new;
infile out truncover;
input var $5000.;
run;

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? Try this test to confirm.

 

In general, the code works in SAS Studio (I tried in SAS Studio in SAS Viya v2022.09)

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 629 views
  • 0 likes
  • 2 in conversation