Thanks for all the suggestions. I believe that I should be able to read the data without using the XML mapper. I'm able to see the data in the log, but SAS cannot interpret it. I'm getting an invalid data error (code & log are below). Does anyone see what I'm doing wrong? Any thoughts or suggestions would be greatly appreciated. -Bill Code: dm 'clear log'; filename in url "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&diagnostics=true&env=http%3A%2F%2Fdatatables.org%2Falltables.env" lrecl=32000; data want; infile in dsd end=eof termstr=crlf; input symbol expiration $ 20; retain symbol; if find(_infile_ ,'<option symbol="') then symbol=scan(_infile_,2,'"'); else if find( _infile_ , '<contract>' ) then do;expiration=scan(_infile_,2,'<>');output; end; run; Log: 102 dm 'clear log'; 103 104 filename in url 104! "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contr 104! acts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&diagnostics=true&env=http%3A%2F%2Fdatata 104! bles.org%2Falltables.env" lrecl=32000; WARNING: Apparent symbolic reference DIAGNOSTICS not resolved. WARNING: Apparent symbolic reference DIAGNOSTICS not resolved. WARNING: Apparent symbolic reference ENV not resolved. 105 106 data want; 107 infile in dsd end=eof termstr=crlf; 108 input symbol expiration $ 20; 109 retain symbol; 110 if find(_infile_ ,'<option symbol="') then symbol=scan(_infile_,2,'"'); 111 else if find( _infile_ , '<contract>' ) then do;expiration=scan(_infile_,2,'<>'); 111! output; end; 112 run; NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column). 110:51 NOTE: The infile IN is: Filename=https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.opt ion_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&diagnostics=true&env=http%3A%2 F%2Fdatatables.org%2Falltables.env, Local Host Name=LP43235, Local Host IP addr=fe80::5d94:d77b:dc9d:7b8f%10, Service Hostname Name=yts1.yql.vip.ne1.yahoo.com, Service IP addr=98.138.243.55,Service Name=N/A, Service Portno=443,Lrecl=32000,Recfm=Variable NOTE: Invalid data for symbol in line 1 1-1747. RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+- RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+- 1 CHAR <?xml version="1.0" encoding="UTF-8"?>.<query xmlns:yahoo="http://www.yahooapis.com/v1 ZONE 33766276776663232322666666663255423233037767727666737666632677732277727666667672666273 NUMR CF8DC065239FED21E0205E3F49E7D2546D82FEAC1552908DCE3A918FFD28440AFF777E918FF1093E3FDF61 87 /base.rng" yahoo:count="2" yahoo:created="2014-05-11T10:56:44Z" yahoo:lang="en"><diagn 173 ostics><url execution-start-time="0" execution-stop-time="71" execution-time="71"><![C 259 DATA[http://datatables.org/alltables.env]]></url><url execution-start-time="72" execut 345 ion-stop-time="143" execution-time="71"><![CDATA[http://www.datatables.org/yahoo/finan 431 ce/yahoo.finance.option_contracts.xml]]></url><publiclyCallable>true</publiclyCallable 517 ><url execution-start-time="146" execution-stop-time="1143" execution-time="997"><![CD 603 ATA[http://finance.yahoo.com/q/op?s=fb]]></url><javascript execution-start-time="145" 689 execution-stop-time="1164" execution-time="1019" instructions-used="15397" table-name= 775 "yahoo.finance.option_contracts"></javascript><url execution-start-time="146" executio 861 n-stop-time="1221" execution-time="1075"><![CDATA[http://finance.yahoo.com/q/op?s=yhoo 947 ]]></url><javascript execution-start-time="145" execution-stop-time="1243" execution-t 1033 ime="1098" instructions-used="25640" table-name="yahoo.finance.option_contracts"></jav 1119 ascript><user-time>1244</user-time><service-time>2117</service-time><build-version>0.2 1205 .2467</build-version></diagnostics><results><option symbol="yhoo"><contract>2014-05</c 1291 ontract><contract>2014-06</contract><contract>2014-07</contract><contract>2014-10</con 1377 tract><contract>2015-01</contract><contract>2016-01</contract></option><option symbol= 1463 "fb"><contract>2014-05</contract><contract>2014-06</contract><contract>2014-07</contra 1549 ct><contract>2014-09</contract><contract>2014-12</contract><contract>2015-01</contract 1635 ><contract>2016-01</contract></option></results></query><!-- total: 1244 -->.<!-- engi ZONE 33666776673333323332666776673326776663327677677332776773322227676632333322230322226666 NUMR EC3FE42134E2016D01CF3FE42134ECFF049FEECF2535C43ECF15529EC1DD04F41CA012440DDEAC1DD05E79 1721 ne10.yql.ne1.yahoo.com -->. 1747 ZONE 663327762663276666266622230 NUMR E510E91CEE51E918FFE3FD0DDEA eof=1 symbol=1 expiration= _ERROR_=1 _INFILE_=<?xml version="1.0" encoding="UTF-8"?> <query xmlns:yahoo="http://www.yahooapis.com/v1/ base.rng" yahoo:count="2" yahoo:created="2014-05-11T10:56:44Z" yahoo:lang="en"><diagnostics><url execution-start-time="0" execution-stop-time="71" execution-time="71"><![CDATA[http://datatable s.org/alltables.env]]></url><url execution-start-time="72" execution-stop-time="143" execution-t ime="71"><![CDATA[http://www.datatables.org/yahoo/finance/yahoo.finance.option_contracts.xml]]>< /url><publiclyCallable>true</publiclyCallable><url execution-start-time="146" execution-stop-tim e="1143" execution-time="997"><![CDATA[http://finance.yahoo.com/q/op?s=fb]]></url><javascript ex ecution-start-time="145" execution-stop-time="1164" execution-time="1019" instructions-used="153 97" table-name="yahoo.finance.option_contracts"></javascript><url execution-start-time="146" exe cution-stop-time="1221" execution-time="1075"><![CDATA[http://finance.yahoo.com/q/op?s=yhoo]]></ url><javascript execution-start-time="145" execution-stop-time="1243" execution-time="1098" inst ructions-used="25640" table-name="yahoo.finance.option_contracts"></javascript><user-time>1244</ user-time><service-time>2117</service-time><build-version>0.2.2467</build-version></diagnostics> <results><option symbol="yhoo"><contract>2014-05</contract><contract>2014-06</contract><contract >2014-07</contract><contract>2014-10</contract><contract>2015-01</contract><contract>2016-01</co ntract></option><option symbol="fb"><contract>2014-05</contract><contract>2014-06</contract><con tract>2014-07</contract><contract>2014-09</contract><contract>2014-12</contract><contract>2015-0 1</contract><contract>2016-01</contract></option></results></query><!-- total: 1244 --> <!-- eng ine10.yql.ne1.yahoo.com --> _N_=1 NOTE: 1 record was read from the infile IN. The minimum record length was 1747. The maximum record length was 1747. NOTE: The data set WORK.WANT has 0 observations and 2 variables. NOTE: DATA statement used (Total process time): real time 1.86 seconds cpu time 0.15 seconds
... View more