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 Hackathon registration is open! Build your skills. Make connections. Enjoy creative freedom. Maybe change the world.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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