<?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: How do i create a new file to be stored in my created Library SAS folder instead of Work folder? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515451#M139072</link>
    <description>&lt;P&gt;worked out perfectly.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 21:39:00 GMT</pubDate>
    <dc:creator>Mystik</dc:creator>
    <dc:date>2018-11-22T21:39:00Z</dc:date>
    <item>
      <title>How do i create a new file to be stored in my created Library SAS folder instead of Work folder?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515442#M139067</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running this data (called drases) and wanted the resulting SAS data to be created (tcalled all_drases), to be stored in one of my Library folders (called jdata) instead of that file automatically going into Work folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please what is the appropriate SAS programming for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the SAS program i am running;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname samma "F:\samma";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data drases;&lt;/P&gt;&lt;P&gt;set samma.drases;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data all_drases;&lt;/P&gt;&lt;P&gt;set drases;&lt;/P&gt;&lt;P&gt;if crodcode in (678, 790, 890, 898, 920, 930, 940) then alc_grp="AMAS";&lt;/P&gt;&lt;P&gt;if crodcode in (67, 87, 93, 97, 98, 99, 1028, 8282, 82829, 63789) then alc_grp="AMAL";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 21:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515442#M139067</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2018-11-22T21:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do i create a new file to be stored in my created Library SAS folder instead of Work folder?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515446#M139068</link>
      <description>&lt;P&gt;Just use the library for output as you used it for input:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data jdata.all_drases;  /* line changed */

set drases;

if crodcode in (678, 790, 890, 898, 920, 930, 940) then alc_grp="AMAS";

if crodcode in (67, 87, 93, 97, 98, 99, 1028, 8282, 82829, 63789) then alc_grp="AMAL";

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Nov 2018 21:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515446#M139068</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-11-22T21:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do i create a new file to be stored in my created Library SAS folder instead of Work folder?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515451#M139072</link>
      <description>&lt;P&gt;worked out perfectly.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 21:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-create-a-new-file-to-be-stored-in-my-created-Library/m-p/515451#M139072</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2018-11-22T21:39:00Z</dc:date>
    </item>
  </channel>
</rss>

