<?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: Need more information about &amp;quot;%sysfunc(getoption(WORK))/filename&amp;quot; and temporary filenam in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862139#M42448</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to have more information on two things.&lt;/P&gt;
&lt;P&gt;First:&lt;/P&gt;
&lt;P&gt;Filename dest1 temp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THE TEMP DEVICE&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The TEMP device allows you to create a temporary file that exists only as long as the filename is assigned. There are&lt;BR /&gt;many reasons why you would need to use a temporary file in a SAS program. But is it possible to see the content of that file with SAS EG ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you have created the filename, and since you know what is written into that filename (because you have written the program), you should know what is in there. You can also look at what is in there exactly the same as you would look for files in any filename. You didn't quote enough of the documentation, which also says "Files manipulated by the TEMP device can have the same attributes and behave identically to DISK files."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;"%sysfunc(getoption(WORK))/filename"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex: "%sysfunc(getoption(WORK))/directories.json"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The commands above have to be part of a longer SAS command, as by itself &lt;FONT face="courier new,courier"&gt;"%sysfunc(getoption(WORK))/filename"&lt;/FONT&gt; is meaningless. Please provide context here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2023 15:24:29 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-03-03T15:24:29Z</dc:date>
    <item>
      <title>Need more information about "%sysfunc(getoption(WORK))/filename" and temporary filename</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862135#M42446</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to have more information on two things.&lt;/P&gt;
&lt;P&gt;First:&lt;/P&gt;
&lt;P&gt;Filename dest1 temp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THE TEMP DEVICE&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The TEMP device allows you to create a temporary file that exists only as long as the filename is assigned. There are&lt;BR /&gt;many reasons why you would need to use a temporary file in a SAS program. But is it possible to see the content of that file with SAS EG ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, another statement that I saw on the web is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"%sysfunc(getoption(WORK))/filename"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex:&amp;nbsp;&amp;nbsp;"%sysfunc(getoption(WORK))/directories.json"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that a file directories.json is created into the work library but is it possible to see it ? What are the advantages and disadvantages of these temporary files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to improve my knowledges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862135#M42446</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-03-03T15:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need more information about "%sysfunc(getoption(WORK))/filename" and temporary filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862138#M42447</link>
      <description>&lt;P&gt;If you want to see the contents of such a file you can always do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
infile dest1;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and read the log.&lt;/P&gt;
&lt;P&gt;But such a temporary file has always been created by the current process, so the owner of the process MUST positively know what he/she put in there &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862138#M42447</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-03T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need more information about "%sysfunc(getoption(WORK))/filename" and temporary filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862139#M42448</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to have more information on two things.&lt;/P&gt;
&lt;P&gt;First:&lt;/P&gt;
&lt;P&gt;Filename dest1 temp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THE TEMP DEVICE&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The TEMP device allows you to create a temporary file that exists only as long as the filename is assigned. There are&lt;BR /&gt;many reasons why you would need to use a temporary file in a SAS program. But is it possible to see the content of that file with SAS EG ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you have created the filename, and since you know what is written into that filename (because you have written the program), you should know what is in there. You can also look at what is in there exactly the same as you would look for files in any filename. You didn't quote enough of the documentation, which also says "Files manipulated by the TEMP device can have the same attributes and behave identically to DISK files."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;"%sysfunc(getoption(WORK))/filename"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ex: "%sysfunc(getoption(WORK))/directories.json"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The commands above have to be part of a longer SAS command, as by itself &lt;FONT face="courier new,courier"&gt;"%sysfunc(getoption(WORK))/filename"&lt;/FONT&gt; is meaningless. Please provide context here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862139#M42448</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-03T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need more information about "%sysfunc(getoption(WORK))/filename" and temporary filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862141#M42449</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;What are the advantages and disadvantages of these temporary files.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;Advantage - they are temporary.&lt;/P&gt;
&lt;P&gt;Disadvantage - they are temporary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename dest1 temp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename dest1 LIST;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and see the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 15:26:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Need-more-information-about-quot-sysfunc-getoption-WORK-filename/m-p/862141#M42449</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-03-03T15:26:50Z</dc:date>
    </item>
  </channel>
</rss>

