<?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 Re: Using PC SAS/CONNECT for WRDS in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/440074#M4716</link>
    <description>&lt;P&gt;Similar to the suggestion by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;(as far as I know, in SAS Studio WRDS one cannot directly export to the local machine, unless&amp;nbsp;one is connected to the WRDS server with his or her local machine using SAS rather than SAS Studio and uses a program like WinSCP), you can do the following trick:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; libname out "/home/.../";
 data out.filename; 
   set filename;
 run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or you can do the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data '/home/.../filename.sas7bdat';
	set filename;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both should work. This exporting keeps your data in the .sas7dbat format. However, you can also use the following command if you want to export your data in .csv format:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=work.filename DBMS=csv
   outfile="/home/.../filename.csv" replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I hope this helps&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183607"&gt;@fafrin420&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2018 20:43:52 GMT</pubDate>
    <dc:creator>Yegen</dc:creator>
    <dc:date>2018-02-25T20:43:52Z</dc:date>
    <item>
      <title>Using PC SAS/CONNECT for WRDS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/425359#M4265</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to download data file from wrds server (&lt;A href="https://wrds-web.wharton.upenn.edu/wrds/" target="_blank"&gt;https://wrds-web.wharton.upenn.edu/wrds/&lt;/A&gt;) using SAS studio and then run my desired code on that data using PC SAS. I could download data using SAS studio but can only save the data to my PC in csv format. I want to save the file in sas7bdat format. Please help me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/425359#M4265</guid>
      <dc:creator>fafrin420</dc:creator>
      <dc:date>2018-01-05T20:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using PC SAS/CONNECT for WRDS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/425366#M4268</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183607"&gt;@fafrin420&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I want to download data file from wrds server (&lt;A href="https://wrds-web.wharton.upenn.edu/wrds/" target="_blank"&gt;https://wrds-web.wharton.upenn.edu/wrds/&lt;/A&gt;) using SAS studio and then run my desired code on that data using PC SAS. I could download data using SAS studio but can only save the data to my PC in csv format. I want to save the file in sas7bdat format. Please help me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To 'save' it in SAS7BDAT form, map a directory to your local drive and then copy/move the file there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you're using Wharton's SAS Studio implementation, you're likely stuck with CSV. That's not a bad decision because CSV files are much smaller than SAS7BDAT. You can usually right click a file in SAS Studio and download it that way as well, or navigate to the storage location in the Servers Files Folder Pane, select the item and click the down arrow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/425366#M4268</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using PC SAS/CONNECT for WRDS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/425371#M4269</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; There have been several previous postings about using WRDS with SAS Studio but I am not sure what issue you're running into if you have been able to read the WRDS data.&lt;BR /&gt;&lt;BR /&gt; If SAS Studio is running in SAS University Edition, you should be able to write a SAS data set to your shared folder location. If SAS Studio is running in a local install of SAS, you should be able to write a SAS data set to your C: drive.&lt;BR /&gt;&lt;BR /&gt; Assuming you are using SAS on Windows, with a local installation of SAS and you have a folder called C:\temp installed on your personal machine, then this should work for you: &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname perm 'c:\temp';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;data perm.newdata;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; set sashelp.class;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data=perm.newdata;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;If that works using SASHELP.CLASS and you can go to your C: drive and see the newdata.sas7bdat file, then all you have to do is put your code to make your data set where I have created PERM.NEWDATA.&lt;BR /&gt;&lt;BR /&gt; If you are using SAS University Edition with SAS Studio, then the only thing you have to change in the above program is the LIBNAME statement:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname perm '/folders/myfolders';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; If your issue is with WRDS, then I believe they have a help desk too.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/425371#M4269</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-01-05T20:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using PC SAS/CONNECT for WRDS</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/440074#M4716</link>
      <description>&lt;P&gt;Similar to the suggestion by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;(as far as I know, in SAS Studio WRDS one cannot directly export to the local machine, unless&amp;nbsp;one is connected to the WRDS server with his or her local machine using SAS rather than SAS Studio and uses a program like WinSCP), you can do the following trick:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; libname out "/home/.../";
 data out.filename; 
   set filename;
 run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or you can do the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data '/home/.../filename.sas7bdat';
	set filename;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both should work. This exporting keeps your data in the .sas7dbat format. However, you can also use the following command if you want to export your data in .csv format:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=work.filename DBMS=csv
   outfile="/home/.../filename.csv" replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I hope this helps&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183607"&gt;@fafrin420&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 20:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Using-PC-SAS-CONNECT-for-WRDS/m-p/440074#M4716</guid>
      <dc:creator>Yegen</dc:creator>
      <dc:date>2018-02-25T20:43:52Z</dc:date>
    </item>
  </channel>
</rss>

