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)

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 177 views
  • 0 likes
  • 2 in conversation