<?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: Filename inODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68711#M7915</link>
    <description>I was thinking that something like that might be neccessary.  I was hoping someone here had the silver bullet for this.</description>
    <pubDate>Tue, 01 Sep 2009 23:13:02 GMT</pubDate>
    <dc:creator>Flip</dc:creator>
    <dc:date>2009-09-01T23:13:02Z</dc:date>
    <item>
      <title>Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68707#M7911</link>
      <description>OK my brain seems to be dead.  I am writing a spreadsheet out but I only have a library reference not a path.  So if I write a file by datastep I put&lt;BR /&gt;
Data _null_;&lt;BR /&gt;
file library(filename);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Now if I want to use ODS I have&lt;BR /&gt;
&lt;BR /&gt;
ODS excelxp file = ???  ...&lt;BR /&gt;
&lt;BR /&gt;
using the syntax library(filename) does not work here.  How is this accomplished.</description>
      <pubDate>Tue, 01 Sep 2009 19:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68707#M7911</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-01T19:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68708#M7912</link>
      <description>The only OS where I have ever seen such FILE statement syntax is z/OS (MVS) where you have a pre-defined JCL DD statement pointing to a PDS or PDSE library, or you have a SAS-defined FILENAME pointing to the library and the member name is placed inside the parentheses.  If you have a predefined FILENAME (or an external JCL DD on MVS) and you do not want a PDS (or if it is not an MVS environment), you specify the SAS FILENAME or the FILE statement with the complete file name defined in quotes.  And when using ODS, you would specify FILE=&lt;FILEREF&gt;  parameter.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/FILEREF&gt;</description>
      <pubDate>Tue, 01 Sep 2009 20:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68708#M7912</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-01T20:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68709#M7913</link>
      <description>&amp;gt; The only OS where I have ever seen such FILE&lt;BR /&gt;
&amp;gt; statement syntax is z/OS (MVS)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Scott Barry&lt;BR /&gt;
&amp;gt; SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
In that case here.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/specaggs.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/specaggs.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Now back to the question.  The environment I am working in assigns the library where the text files are to be placed (which of course changes between Development and Production environments) but not the path for this library.   Sure I would change that if I could, and I may have to.  But it would be more consistant with the structure I am working in to be able to reference the file by fileref and filename rather than fully qualified name.</description>
      <pubDate>Tue, 01 Sep 2009 21:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68709#M7913</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-01T21:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68710#M7914</link>
      <description>Not really eligant but you could pull the PATHNAME value from DICTIONARY.LIBNAMES into a macro variable with SQL for the given library.</description>
      <pubDate>Tue, 01 Sep 2009 23:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68710#M7914</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2009-09-01T23:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68711#M7915</link>
      <description>I was thinking that something like that might be neccessary.  I was hoping someone here had the silver bullet for this.</description>
      <pubDate>Tue, 01 Sep 2009 23:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68711#M7915</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-01T23:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68712#M7916</link>
      <description>Don't know if this is silver bullet but it seems obvious.&lt;BR /&gt;
&lt;BR /&gt;
Since the parenthesized file name syntax does not work, don’t use it.  You have the FILEREF to the aggregate location so just make a new FILEREF using the information you have plus the file you want to create.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename FT29F001 '.';&lt;BR /&gt;
&lt;BR /&gt;
filename FT30F001 "%sysfunc(pathname(FT29F001,F))\dummy.xls";&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file=FT30F001;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 02 Sep 2009 03:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68712#M7916</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-09-02T03:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filename inODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68713#M7917</link>
      <description>Poifect.&lt;BR /&gt;
&lt;BR /&gt;
That was exactly what my tired brain was searching for.</description>
      <pubDate>Wed, 02 Sep 2009 12:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Filename-inODS/m-p/68713#M7917</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-02T12:03:37Z</dc:date>
    </item>
  </channel>
</rss>

