<?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 How to use ODS Printer in Unix in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-use-ODS-Printer-in-Unix/m-p/5049#M2038</link>
    <description>We are using the following command to print the output directly to a printer in Unix.&lt;BR /&gt;
&lt;BR /&gt;
FILENAME outfile "/myfolder/myfile.txt";&lt;BR /&gt;
FILENAME outfile pipe 'lp -d pr908104';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The link&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/odsug.hlp/a002217095.htm#a002536270" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/odsug.hlp/a002217095.htm#a002536270&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
also mentions about using unix command to print&lt;BR /&gt;
&lt;BR /&gt;
filename your-fileref pipe 'lpr -P printer-name';&lt;BR /&gt;
ods printer file=your-fileref;&lt;BR /&gt;
&lt;BR /&gt;
The example and the code we use shows that we have to use the Unix&lt;BR /&gt;
&lt;BR /&gt;
How can i avoid using Unix commands to send the output to print as we are not permitted to use Unix commands for security reasons.&lt;BR /&gt;
&lt;BR /&gt;
Can I use ODS Printer&lt;BR /&gt;
&lt;BR /&gt;
Please help me with the syntax.</description>
    <pubDate>Sun, 14 Oct 2007 10:55:21 GMT</pubDate>
    <dc:creator>SanjayM</dc:creator>
    <dc:date>2007-10-14T10:55:21Z</dc:date>
    <item>
      <title>How to use ODS Printer in Unix</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-use-ODS-Printer-in-Unix/m-p/5049#M2038</link>
      <description>We are using the following command to print the output directly to a printer in Unix.&lt;BR /&gt;
&lt;BR /&gt;
FILENAME outfile "/myfolder/myfile.txt";&lt;BR /&gt;
FILENAME outfile pipe 'lp -d pr908104';&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The link&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/odsug.hlp/a002217095.htm#a002536270" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/odsug.hlp/a002217095.htm#a002536270&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
also mentions about using unix command to print&lt;BR /&gt;
&lt;BR /&gt;
filename your-fileref pipe 'lpr -P printer-name';&lt;BR /&gt;
ods printer file=your-fileref;&lt;BR /&gt;
&lt;BR /&gt;
The example and the code we use shows that we have to use the Unix&lt;BR /&gt;
&lt;BR /&gt;
How can i avoid using Unix commands to send the output to print as we are not permitted to use Unix commands for security reasons.&lt;BR /&gt;
&lt;BR /&gt;
Can I use ODS Printer&lt;BR /&gt;
&lt;BR /&gt;
Please help me with the syntax.</description>
      <pubDate>Sun, 14 Oct 2007 10:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-use-ODS-Printer-in-Unix/m-p/5049#M2038</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-10-14T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ODS Printer in Unix</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-use-ODS-Printer-in-Unix/m-p/5050#M2039</link>
      <description>Hi:&lt;BR /&gt;
  The URL that you cite, also says (note in bold):&lt;BR /&gt;
&lt;BR /&gt;
(begin quote)&lt;BR /&gt;
Note:   To print directly to a printer in the UNIX , VMS, or z/OS operating environment, &lt;BR /&gt;
you can use the FILENAME statement. Specific information about your &lt;BR /&gt;
operating environment is required when using the FILENAME statement. &lt;BR /&gt;
  &lt;BR /&gt;
&lt;B&gt;See the SAS documentation for your operating environment before using this statement.&lt;/B&gt; &lt;BR /&gt;
  &lt;BR /&gt;
Commands are also available in some operating environments that &lt;BR /&gt;
associate a fileref with a file and that break that association.  &lt;BR /&gt;
(end quote)&lt;BR /&gt;
&lt;BR /&gt;
The web site that you reference, also has this example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
Use the FILENAME statement with the PIPE command to associate a fileref  &lt;BR /&gt;
with your lpr print command. &lt;BR /&gt;
   &lt;BR /&gt;
Syntax: &lt;BR /&gt;
filename your-fileref pipe 'lpr -P printer-name';&lt;BR /&gt;
ods printer file=your-fileref;&lt;BR /&gt;
    &lt;BR /&gt;
Example:&lt;BR /&gt;
filename local pipe 'lpr -p chpljj21';&lt;BR /&gt;
ods printer file=local;&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
I do not have a Unix system (with a printer) to test on. But if I did have a system to test on, I don't know of any other way, except to use the LPR command. The only other thing I'd possibly try to do is create a PostScript (.PS) file but then you'd just have a PS file that would need to be printed with Unix commands. Your best bet for help might be to find the SAS Companion for your particular "flavor" of Unix, as referenced, or to contact Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sun, 14 Oct 2007 15:37:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-use-ODS-Printer-in-Unix/m-p/5050#M2039</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-14T15:37:30Z</dc:date>
    </item>
  </channel>
</rss>

