<?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 Using files stored in google drive in SAS (never used google drive for SAS programming before) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560728#M156875</link>
    <description>&lt;P&gt;Dear Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use large data very frequently in SAS. I am wondering if I can save my files in google drive instead of saving them in a external hard drive and use them directly from google drive in SAS programming. I read the following site and tried the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename _inbox "%sysfunc(getoption(work))/control.sas7bdat";&lt;BR /&gt;&lt;BR /&gt;proc http method="get"&lt;BR /&gt;url="&lt;A href="https://drive.google.com/file/d/................................../view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/................................../view?usp=sharing&lt;/A&gt;"&lt;BR /&gt;out=_inbox&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename _inbox clear;&lt;BR /&gt;proc contents data=work.control;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I got the following error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;67 filename _inbox "%sysfunc(getoption(work))/control.sas7bdat";&lt;BR /&gt;68&lt;BR /&gt;69 proc http method="get"&lt;BR /&gt;70 url="&lt;A href="https://drive.google.com/file/d/1bUEHozpiVaziEyts5xKDJeBi0r2GP5VZ/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1.&lt;/A&gt;............................"&lt;BR /&gt;71 out=_inbox&lt;BR /&gt;72 /* proxyhost="&lt;A href="http://yourproxy.company.com" target="_blank" rel="noopener"&gt;http://yourproxy.company.com&lt;/A&gt;" */&lt;BR /&gt;73 ;&lt;BR /&gt;74 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE HTTP used (Total process time):&lt;BR /&gt;real time 0.34 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: 200 OK&lt;/P&gt;&lt;P&gt;75&lt;BR /&gt;76&lt;BR /&gt;77&lt;BR /&gt;78 filename _inbox clear;&lt;BR /&gt;NOTE: Fileref _INBOX has been deassigned.&lt;BR /&gt;79&lt;BR /&gt;80 proc contents data=work.control;&lt;BR /&gt;ERROR: File WORK.CONTROL.DATA is not a SAS data set.&lt;BR /&gt;81 run;&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As a first time user, what should I do? If you can provide me a thorough process to follow, it would really be helpful.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 07:01:09 GMT</pubDate>
    <dc:creator>nazmul</dc:creator>
    <dc:date>2019-05-22T07:01:09Z</dc:date>
    <item>
      <title>Using files stored in google drive in SAS (never used google drive for SAS programming before)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560728#M156875</link>
      <description>&lt;P&gt;Dear Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use large data very frequently in SAS. I am wondering if I can save my files in google drive instead of saving them in a external hard drive and use them directly from google drive in SAS programming. I read the following site and tried the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename _inbox "%sysfunc(getoption(work))/control.sas7bdat";&lt;BR /&gt;&lt;BR /&gt;proc http method="get"&lt;BR /&gt;url="&lt;A href="https://drive.google.com/file/d/................................../view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/................................../view?usp=sharing&lt;/A&gt;"&lt;BR /&gt;out=_inbox&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename _inbox clear;&lt;BR /&gt;proc contents data=work.control;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I got the following error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;67 filename _inbox "%sysfunc(getoption(work))/control.sas7bdat";&lt;BR /&gt;68&lt;BR /&gt;69 proc http method="get"&lt;BR /&gt;70 url="&lt;A href="https://drive.google.com/file/d/1bUEHozpiVaziEyts5xKDJeBi0r2GP5VZ/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1.&lt;/A&gt;............................"&lt;BR /&gt;71 out=_inbox&lt;BR /&gt;72 /* proxyhost="&lt;A href="http://yourproxy.company.com" target="_blank" rel="noopener"&gt;http://yourproxy.company.com&lt;/A&gt;" */&lt;BR /&gt;73 ;&lt;BR /&gt;74 run;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE HTTP used (Total process time):&lt;BR /&gt;real time 0.34 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: 200 OK&lt;/P&gt;&lt;P&gt;75&lt;BR /&gt;76&lt;BR /&gt;77&lt;BR /&gt;78 filename _inbox clear;&lt;BR /&gt;NOTE: Fileref _INBOX has been deassigned.&lt;BR /&gt;79&lt;BR /&gt;80 proc contents data=work.control;&lt;BR /&gt;ERROR: File WORK.CONTROL.DATA is not a SAS data set.&lt;BR /&gt;81 run;&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As a first time user, what should I do? If you can provide me a thorough process to follow, it would really be helpful.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560728#M156875</guid>
      <dc:creator>nazmul</dc:creator>
      <dc:date>2019-05-22T07:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using files stored in google drive in SAS (never used google drive for SAS programming before)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560731#M156877</link>
      <description>&lt;P&gt;Just a word of caution. Unless you happen to have a very fast Internet download connection, reading data from Google Drive is likely to be significantly slower than an external hard drive.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560731#M156877</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-05-22T07:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using files stored in google drive in SAS (never used google drive for SAS programming before)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560738#M156882</link>
      <description>&lt;P&gt;Open your control.sas7bdat file with a text editor. Most probably you have a HTML response from Google Drive there.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 08:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/560738#M156882</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-22T08:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using files stored in google drive in SAS (never used google drive for SAS programming before)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/561411#M157159</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;says, you aren't using the correct URL, so the response you are getting should just be HTML and not the file you actually want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not a simple operation to do what you want and I'd recommend that you use one of the many command line tools available for downloading files from Google Drive instead of attempting an implementation yourself using PROC HTTP (though certainly not impossible).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/gdrive-org/gdrive" target="_blank"&gt;https://github.com/gdrive-org/gdrive&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 14:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-files-stored-in-google-drive-in-SAS-never-used-google/m-p/561411#M157159</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2019-05-24T14:39:28Z</dc:date>
    </item>
  </channel>
</rss>

