<?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 can I see in SAS Viya the file created with the filename statement? Where is it stored? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-see-in-SAS-Viya-the-file-created-with-the-filename/m-p/832361#M328985</link>
    <description>&lt;P&gt;I assume you want to see what gets written to the fileref code&lt;BR /&gt;&lt;BR /&gt;If you review the documentation for the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p05r9vhhqbhfzun1qo9mw64s4700.htm#:~:text=a%20tape%20drive.-,TEMP,-creates%20a%20temporary" target="_self"&gt;filename statement&lt;/A&gt;&amp;nbsp;you will find:&lt;BR /&gt;&lt;BR /&gt;TEMP&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;creates a temporary file that exists only as long as the filename is assigned. The temporary file can be accessed only through the logical name and is available only while the logical name exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the simple answer is to change your filename statement to point to a file you can access outside of SAS with a text editor&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 17:09:43 GMT</pubDate>
    <dc:creator>AMSAS</dc:creator>
    <dc:date>2022-09-08T17:09:43Z</dc:date>
    <item>
      <title>How can I see in SAS Viya the file created with the filename statement? Where is it stored?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-see-in-SAS-Viya-the-file-created-with-the-filename/m-p/832314#M328961</link>
      <description>&lt;P&gt;I copy/paste a code from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;to contextualize my question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I "see" what the file looks like?&lt;/P&gt;
&lt;P&gt;In the log I get the sas viya id, something like&lt;/P&gt;
&lt;P&gt;Filename=/opt/sas/viya/config/var/tmp/compsrv/default/8a8986e5-105d-4b67-bf03-d3eb0ecc7192/SAS_work07BC00006207_bsul2237/#LN00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't have any idea how to make it visible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data ValList (drop=ValueList);
do ValueList = 100 to 100000000 by 100;
valuenum=put(ValueList,6.);
id=valuenum;
output;
end;
run;

filename code temp;
data _null_;
  file code ;
  set vallist end=eof;
  length str $32767 ;
  if _n_=1 then put 'create table oks as select * from vallist where id in ('  @;
  else put ' ' @;
  str = quote(trim(valuenum));
  put str ;
  if eof then put ');';
run;

proc sql;
%include code ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-see-in-SAS-Viya-the-file-created-with-the-filename/m-p/832314#M328961</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-09-08T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I see in SAS Viya the file created with the filename statement? Where is it stored?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-see-in-SAS-Viya-the-file-created-with-the-filename/m-p/832361#M328985</link>
      <description>&lt;P&gt;I assume you want to see what gets written to the fileref code&lt;BR /&gt;&lt;BR /&gt;If you review the documentation for the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p05r9vhhqbhfzun1qo9mw64s4700.htm#:~:text=a%20tape%20drive.-,TEMP,-creates%20a%20temporary" target="_self"&gt;filename statement&lt;/A&gt;&amp;nbsp;you will find:&lt;BR /&gt;&lt;BR /&gt;TEMP&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;creates a temporary file that exists only as long as the filename is assigned. The temporary file can be accessed only through the logical name and is available only while the logical name exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the simple answer is to change your filename statement to point to a file you can access outside of SAS with a text editor&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-see-in-SAS-Viya-the-file-created-with-the-filename/m-p/832361#M328985</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2022-09-08T17:09:43Z</dc:date>
    </item>
  </channel>
</rss>

