<?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 Recover file in PG1 library in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624982#M8790</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;*How do I recover a file?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning SAS using University SAS Studio and I came across the following problem. The eu_occ table that is part of the PG1 library of the Essentials 1 course is only showing the Country and Geo columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Run pg1.eu_occ;
data pg1.eu_occ2;
	set pg1.eu_occ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Using statements suggested by Roger Dean:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Statements by Roger Dean;
data WORK.EU_OCC;
   infile datalines dsd truncover;
   input Geo:$2. Country:$40.;
   label Geo="Country Code" Country="Reporting Country";
 datalines;
 AT Austria
 AT Austria
 AT Austria
 AT Austria
 AT Austria
 ;;;;

 NOTE: There were 5 observations read from the data set PG1.EU_OCC.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 250        
 251        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 263        &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I recover the original file? It is necessary for other stages of the course.&lt;BR /&gt;I have tried to create a new library, called PG2 but it just makes a copy of PG1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturar.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36145i7E54067DD347DD1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.PNG" alt="Capturar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2020 02:24:53 GMT</pubDate>
    <dc:creator>JohnWeyk</dc:creator>
    <dc:date>2020-02-15T02:24:53Z</dc:date>
    <item>
      <title>Recover file in PG1 library</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624982#M8790</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;*How do I recover a file?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning SAS using University SAS Studio and I came across the following problem. The eu_occ table that is part of the PG1 library of the Essentials 1 course is only showing the Country and Geo columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Run pg1.eu_occ;
data pg1.eu_occ2;
	set pg1.eu_occ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Using statements suggested by Roger Dean:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Statements by Roger Dean;
data WORK.EU_OCC;
   infile datalines dsd truncover;
   input Geo:$2. Country:$40.;
   label Geo="Country Code" Country="Reporting Country";
 datalines;
 AT Austria
 AT Austria
 AT Austria
 AT Austria
 AT Austria
 ;;;;

 NOTE: There were 5 observations read from the data set PG1.EU_OCC.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 250        
 251        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 263        &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I recover the original file? It is necessary for other stages of the course.&lt;BR /&gt;I have tried to create a new library, called PG2 but it just makes a copy of PG1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturar.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36145i7E54067DD347DD1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturar.PNG" alt="Capturar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 02:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624982#M8790</guid>
      <dc:creator>JohnWeyk</dc:creator>
      <dc:date>2020-02-15T02:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Recover file in PG1 library</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624984#M8791</link>
      <description>Go back to the original setup code and run it again - but consider putting it in a different folder. Then replace the one file you want. &lt;BR /&gt;&lt;BR /&gt;If you're on Windows you can try the Previous Versions trick via File Properties in Windows Explorer if you have it turned on.</description>
      <pubDate>Sat, 15 Feb 2020 03:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624984#M8791</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-15T03:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Recover file in PG1 library</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624997#M8792</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310945"&gt;@JohnWeyk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;'s answer, you can put access=readonly in the libname statement to avoid this kind of issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname pg1 "&amp;amp;path./data" access=readonly;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 08:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/624997#M8792</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-15T08:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Recover file in PG1 library</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/625019#M8796</link>
      <description>&lt;P&gt;Thanks for the tip.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 17:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/625019#M8796</guid>
      <dc:creator>JohnWeyk</dc:creator>
      <dc:date>2020-02-15T17:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Recover file in PG1 library</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/625020#M8797</link>
      <description>&lt;P&gt;Thank you very much, I managed to recover the original file using Windows.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 17:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/625020#M8797</guid>
      <dc:creator>JohnWeyk</dc:creator>
      <dc:date>2020-02-15T17:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Recover file in PG1 library</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/625041#M8800</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/310945"&gt;@JohnWeyk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;'s answer, you can put access=readonly in the libname statement to avoid this kind of issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname pg1 "&amp;amp;path./data" access=readonly;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think the course requires you to write to that library periodically though?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 21:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Recover-file-in-PG1-library/m-p/625041#M8800</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-15T21:40:12Z</dc:date>
    </item>
  </channel>
</rss>

