<?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: Why is data output defaulting to temporary work file? in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763733#M828</link>
    <description>&lt;P&gt;That's not your output data set that's the one sitting in SASUSERV9.4. Since you didn't assign it a library and are opening it directly, probably double clicking, SAS creates a temporary libname to reference it. EDIT: Or Studio is doing that because you referenced it directly via the path, not via a library. If you do it via a library that shouldn't appear.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Like I mentioned, &lt;STRONG&gt;if you give your data sets unique names this becomes easier to see.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 21:10:47 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-08-24T21:10:47Z</dc:date>
    <item>
      <title>Why is data output defaulting to temporary work file?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763613#M822</link>
      <description>&lt;P&gt;For example, if i run the code below, the default 'output data' is a temporary file (library temp0, not work), not the permanent file. Since I have only referenced the cert library, why is it outputting to this extra library and what is it? To be clear, the cert library file is also available in the output -- the output has two files, but the right one is not the default. I tried print without referencing the data set and I get the same output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATa cert.penngolf ;&lt;BR /&gt;set '/home/u49936438/sasuser.v94/penngolf.sas7bdat';&lt;/P&gt;&lt;P&gt;Bogey = 0.186*Slope + USGA ;&lt;BR /&gt;label Bogey = 'Bogey Rating'&lt;BR /&gt;USGA = 'USGA Rating'&lt;BR /&gt;Slope = 'Course Slope'&lt;BR /&gt;Par = 'Course Par'&lt;BR /&gt;Yards = 'Total Yardage';&lt;BR /&gt;format Bogey 4.1 Yards comma5.;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PRINT data = cert.penngolf NOOBS ;&lt;BR /&gt;title 'The penngolf data set';&lt;BR /&gt;var Name Yards Par Slope USGA Bogey;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 18:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763613#M822</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-24T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data output defaulting to temporary work file?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763616#M824</link>
      <description>Show the log and please explain why you think it's referncing the temp0 library?&lt;BR /&gt;I could see your original data set, penngolf.sas7bdat ending up in a temp0 library if you double clicked the file and it opened there, but from the code you've shown that shouldn't happen with the cert.penngolf dataset. I would also recommend giving the data sets different names so you can track them more clearly, if they have the same name exactly, how do you identify which one you're referencing?&lt;BR /&gt;&lt;BR /&gt;FYI I would have expected your code to be:&lt;BR /&gt;&lt;BR /&gt;libname myData '/home/u49936438/sasuser.v94/';&lt;BR /&gt;&lt;BR /&gt;data cert.penngolf2;&lt;BR /&gt;set myData.penngolf;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 24 Aug 2021 18:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763616#M824</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-24T18:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data output defaulting to temporary work file?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763624#M826</link>
      <description>&lt;DIV class="sasSource"&gt;Well, that is the name of the default output data table rather than the cert.penngolf so that's how I know:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaliu_1-1629830675929.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62951iBF29B3509CE88226/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaliu_1-1629830675929.png" alt="jaliu_1-1629830675929.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;***&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;LOG:&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 DATa cert.penngolf ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 set '/home/u49936438/sasuser.v94/penngolf.sas7bdat';&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Data file SASUSER.PENNGOLF.DATA is in a format that is native to another host, or the file encoding does not match the&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;performance.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 Bogey = 0.186*Slope + USGA ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 label Bogey = 'Bogey Rating'&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 USGA = 'USGA Rating'&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 Slope = 'Course Slope'&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 Par = 'Course Par'&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 Yards = 'Total Yardage';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 format Bogey 4.1 Yards comma5.;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 11 observations read from the data set /home/u49936438/sasuser.v94/penngolf.sas7bdat.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set CERT.PENNGOLF has 11 observations and 10 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 1027.78k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 26020.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 08/24/2021 06:40:15 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 133 Switch Count 5&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 109&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 60&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 264&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 PROC PRINT data = cert.penngolf NOOBS ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 title 'The penngolf data set';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 var Name Yards Par Slope USGA Bogey;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 11 observations read from the data set CERT.PENNGOLF.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted by the "BEST" format.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.02 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 1339.81k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 26020.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 08/24/2021 06:40:15 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 134 Switch Count 1&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 63&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 16&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 288&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 8&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;97&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;***&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Aug 2021 18:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763624#M826</guid>
      <dc:creator>jaliu</dc:creator>
      <dc:date>2021-08-24T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data output defaulting to temporary work file?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763698#M827</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have made that earlier, typically _temp libraries come from opening a data set by clicking on a file outside of SAS and the system associations create the library so SAS can display the data or referencing the set with a literal path as you did instead of library.dataset syntax. Data sets must be a library so one was created. Depending on where that file was it may &lt;STRONG&gt;also&lt;/STRONG&gt; be in a defined library. More than one library can point to the same physical storage location. Which means that a data set in the library could be accesses using any of the library names. So if your CERT library happens to be the same as _temp0 physically then CERT.Penngolf is the same data set as _temp0.Penngolf and the only reason you think they are different some how is a minor misunderstanding of how Libraries work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to your LIBRARIES in the menu. Open _TEMP0 and look at the data set. Then open Cert and look. Do the datasets look the same? Number and names and properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to try sending the output to a different data set if the _TEMP0 and CERT libraries are the same physical location because the data step completely replaced the original version of the data set.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 19:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763698#M827</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-24T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is data output defaulting to temporary work file?</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763733#M828</link>
      <description>&lt;P&gt;That's not your output data set that's the one sitting in SASUSERV9.4. Since you didn't assign it a library and are opening it directly, probably double clicking, SAS creates a temporary libname to reference it. EDIT: Or Studio is doing that because you referenced it directly via the path, not via a library. If you do it via a library that shouldn't appear.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Like I mentioned, &lt;STRONG&gt;if you give your data sets unique names this becomes easier to see.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 21:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Why-is-data-output-defaulting-to-temporary-work-file/m-p/763733#M828</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-24T21:10:47Z</dc:date>
    </item>
  </channel>
</rss>

