<?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: Creating File References for exporting in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511704#M6545</link>
    <description>&lt;P&gt;I understand that, and the question isn't about local PC. This is about exporting a file to a location defined in the Server Files and Folders portion of SAS Studio, which can only include locations the server's able to access. Answering this shouldn't require knowing anything about our server, it (hopefully) should be a built-in SAS Studio feature (or, not, and will be a suggestion at some point).&amp;nbsp; Thanks for answering, though!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2018 15:01:16 GMT</pubDate>
    <dc:creator>snoopy369</dc:creator>
    <dc:date>2018-11-09T15:01:16Z</dc:date>
    <item>
      <title>Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511555#M6536</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm training&amp;nbsp;some new SAS Studio users who're going to be using our new Studio interface with a centralized (windows) server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I'm teaching them is how to export a file, say with PROC EXPORT.&amp;nbsp; While we can use the interface to do that, I also want to teach them how to do it with code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can they export to a file in a folder location that's defined in the server files and folders (by creating a folder shortcut), without specifying the fully qualified path?&amp;nbsp; This is fairly easy to do on _import_, because you simply create a file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;reference&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the interface&amp;nbsp;(select file, right-click, Create -&amp;gt; File Shortcut) and ta-da, use that file reference in your code.&amp;nbsp; But I&amp;nbsp;don't see a way to create a file reference in the interface to a folder, or to a not-yet-extant file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do this?&amp;nbsp; Right now, the common location they export to is a relatively hard to type path that i'd rather them not have to type every time they export.&amp;nbsp; They love the instant fileref from point+click, but the lack of that on export is&amp;nbsp;disappointing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 22:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511555#M6536</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-11-08T22:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511556#M6537</link>
      <description>I usually set up a macro variable with the path at the top of all my programs. Then my export becomes &lt;BR /&gt;&lt;BR /&gt;filename = "&amp;amp;path.\Deliverables\Final V02.xlsx"&lt;BR /&gt;&lt;BR /&gt;Probably not quite what you're looking for but one option. The other is that you can use the .\ and ..\ but it does depend a bit on where the defaults are set, it may not go to where they want.</description>
      <pubDate>Thu, 08 Nov 2018 22:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511556#M6537</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-08T22:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511558#M6538</link>
      <description>No, i'm looking for a Studio specific option, but thanks for replying.  And unfortunately at the moment '.' is a pretty lousy location on the server, we're going to see about changing that... but either way not going to be useful for this. But thanks again!</description>
      <pubDate>Thu, 08 Nov 2018 22:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511558#M6538</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-11-08T22:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511566#M6539</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46466"&gt;@snoopy369&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm training&amp;nbsp;some new SAS Studio users who're going to be using our new Studio interface with a centralized (windows) server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I'm teaching them is how to export a file, say with PROC EXPORT.&amp;nbsp; While we can use the interface to do that, I also want to teach them how to do it with code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can they export to a file in a folder location that's defined in the server files and folders (by creating a folder shortcut), without specifying the fully qualified path?&amp;nbsp; This is fairly easy to do on _import_, because you simply create a file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;reference&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from the interface&amp;nbsp;(select file, right-click, Create -&amp;gt; File Shortcut) and ta-da, use that file reference in your code.&amp;nbsp; But I&amp;nbsp;don't see a way to create a file reference in the interface to a folder, or to a not-yet-extant file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do this?&amp;nbsp; Right now, the common location they export to is a relatively hard to type path that i'd rather them not have to type every time they export.&amp;nbsp; They love the instant fileref from point+click, but the lack of that on export is&amp;nbsp;disappointing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Depending on your environment this may not even be possible. If a &lt;STRONG&gt;server&lt;/STRONG&gt; is executing the code then the server would have to have a location mapped that it can address. Typically the servers do not address user PC locations at all. Each server set up varies. Without knowing a bit, or possibly a lot more, about your set up specific suggestions are kind of "shot in the dark" answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I have seen too many issues related to overwritten or lost files from not using a fully qualified path for any file writing.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 00:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511566#M6539</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-09T00:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511704#M6545</link>
      <description>&lt;P&gt;I understand that, and the question isn't about local PC. This is about exporting a file to a location defined in the Server Files and Folders portion of SAS Studio, which can only include locations the server's able to access. Answering this shouldn't require knowing anything about our server, it (hopefully) should be a built-in SAS Studio feature (or, not, and will be a suggestion at some point).&amp;nbsp; Thanks for answering, though!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 15:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511704#M6545</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-11-09T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511716#M6546</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46466"&gt;@snoopy369&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I understand that, and the question isn't about local PC. This is about exporting a file to a location defined in the Server Files and Folders portion of SAS Studio, which can only include locations the server's able to access. Answering this shouldn't require knowing anything about our server, it (hopefully) should be a built-in SAS Studio feature (or, not, and will be a suggestion at some point).&amp;nbsp; Thanks for answering, though!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The only place by default that I would be sure that a users output can be written is the WORK library. After that it is your configuration settings. The problem with writing to WORK locations is the cleanup that occurs at the end of a session that would likely remove anything written. Your SAS Admin is the person to talk to as controlling or knowing what accesses may be available for users&amp;nbsp;and how&amp;nbsp;to create them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 15:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511716#M6546</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-09T15:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating File References for exporting</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511722#M6549</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;I am one of the SAS Administrators at my site, and I don't&amp;nbsp;think you understand the question.&amp;nbsp; It isn't a matter of where it is legal to export files.&amp;nbsp; It's a question about how to use the SAS Studio IDE's features to&amp;nbsp;simplify my users' workflow, in particular&amp;nbsp;with regards to file paths that are complex.&amp;nbsp; These&amp;nbsp;folder paths&amp;nbsp;will likely be pre-assigned on the administrative end,&amp;nbsp;ultimately, and we know how to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Studio, to import a file, you can use the IDE to create a file reference, and then&amp;nbsp;type that file reference into your code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking to see if there's an equivalent way to do that for exporting a file, which&amp;nbsp;I haven't found an equivalent solution for yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 15:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-File-References-for-exporting/m-p/511722#M6549</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-11-09T15:57:48Z</dc:date>
    </item>
  </channel>
</rss>

