<?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 how to use filename and infile statement to extract goole maps web information in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47756#M256309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does Mike's sasCommunity.org page on the topic provide what you are looking for?:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps"&gt;http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2011 18:56:27 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-11-15T18:56:27Z</dc:date>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47755#M256308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Hi, I'm currently reading Mike Zdeb's one paper. "Driving Distances and Times Using SAS and Google Maps".&amp;nbsp; I want to know how to extract all goole maps web source information into one variable in a SAS dataset using filename and infile statement. thanks&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 18:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47755#M256308</guid>
      <dc:creator>tomtang</dc:creator>
      <dc:date>2011-11-15T18:44:06Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47756#M256309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does Mike's sasCommunity.org page on the topic provide what you are looking for?:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps"&gt;http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 18:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47756#M256309</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-15T18:56:27Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47757#M256310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I have that paper. I want to know how to extract all goole maps web source information into one variable in a SAS dataset?&lt;/P&gt;&lt;P&gt;for example, in mike's code&lt;/P&gt;&lt;P&gt;* enter two zip codes;&lt;/P&gt;&lt;P&gt;%let z1=12203;&lt;/P&gt;&lt;P&gt;%let z2=27513;&lt;/P&gt;&lt;P&gt;* no changes required below this line;&lt;/P&gt;&lt;P&gt;filename x url "&lt;A href="https://communities.sas.com/"&gt;http://maps.google.com/maps?daddr=&amp;amp;z2.%nrstr(&amp;amp;saddr)=&amp;amp;z1&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;data drive;&lt;/P&gt;&lt;P&gt;retain zip1 &amp;amp;z1 zip2 &amp;amp;z2;&lt;/P&gt;&lt;P&gt;infile x lrecl=32000 pad;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to input all information from x into one variable in sas dataset?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 19:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47757#M256310</guid>
      <dc:creator>tomtang</dc:creator>
      <dc:date>2011-11-15T19:07:25Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47758#M256311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi,&lt;/P&gt;&lt;P&gt;in Mike's code, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;loc = find(_infile_,'dditd&amp;gt;');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;but i can't find 'dditd&amp;gt;' in the source information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 19:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47758#M256311</guid>
      <dc:creator>tomtang</dc:creator>
      <dc:date>2011-11-15T19:12:53Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47759#M256312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know Mike mentioned that string in his paper, but I don't think it is still used on the current Google Maps' page.&amp;nbsp; You can search for such strings as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;distance:'&lt;/P&gt;&lt;P&gt;time:'&lt;/P&gt;&lt;P&gt;summary:'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the single quotes at the end of those strings are necessary to be part of the string and the fields appear to be separated by commas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 21:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47759#M256312</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-15T21:24:26Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47760#M256313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;My logic is&lt;/P&gt;&lt;P&gt;step 1. extract whole goole map web information into sigle variable in SAS dataset.&lt;/P&gt;&lt;P&gt;step 2. use find or substr function to search target string and then get the distance and time information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I dont know how to extract whole goole map web information into sigle variable in SAS dataset.&lt;/P&gt;&lt;P&gt;Are you able to show me some sample coding for that?&lt;/P&gt;&lt;P&gt;much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 21:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47760#M256313</guid>
      <dc:creator>tomtang</dc:creator>
      <dc:date>2011-11-15T21:42:14Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47761#M256314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using code based on Mike's paper, but slightly revised, you could get distance and time with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* enter two zip codes;&lt;/P&gt;&lt;P&gt;%let z1=12203;&lt;/P&gt;&lt;P&gt;%let z2=20500;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* no changes required below this line;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename x url "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://communities.sas.com/"&gt;http://maps.google.com/maps?daddr=&amp;amp;z2.%nrstr(&amp;amp;saddr)=&amp;amp;z1&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;filename z temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; &lt;/P&gt;&lt;P&gt;&amp;nbsp; infile x recfm=f lrecl=1 end=eof; &lt;/P&gt;&lt;P&gt;&amp;nbsp; file z recfm=f lrecl=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input @1 x $char1.; &lt;/P&gt;&lt;P&gt;&amp;nbsp; put @1 x $char1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if eof;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call symputx('filesize',_n_);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile z recfm=f lrecl=&amp;amp;filesize. eof=done;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input @ "distance:'" @;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input text $50.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; distance = input(scan(text,1,"'"),$20.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = input(scan(text,3,"'"),$20.); &lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;&amp;nbsp; done:&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename x clear;&lt;/P&gt;&lt;P&gt;filename z clear;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 22:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47761#M256314</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-15T22:45:02Z</dc:date>
    </item>
    <item>
      <title>how to use filename and infile statement to extract goole maps web information</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47762#M256315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 14:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-filename-and-infile-statement-to-extract-goole-maps/m-p/47762#M256315</guid>
      <dc:creator>tomtang</dc:creator>
      <dc:date>2011-11-16T14:23:12Z</dc:date>
    </item>
  </channel>
</rss>

