<?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: Redirecting printer output in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526063#M5475</link>
    <description>It is possible to define logical names that equate to any queue, batch or print.  The logical name can be defined in any appropriate name table, process, group, system, cluster.&lt;BR /&gt;&lt;BR /&gt;I would recommend using SYS$PRINT as a logical name rather than an execution or generic queue name.  You can then define a default value for SYS$PRINT in the system table and define user specific values for users in their process tables via LOGIN.COM.&lt;BR /&gt;&lt;BR /&gt;$DEFINE/SYSTEM SYS$PRINT DEFAULT_QUEUE&lt;BR /&gt;&lt;BR /&gt;In a user's LOGIN.COM:&lt;BR /&gt;&lt;BR /&gt;$DEFINE SYS$PRINT MY_DEFAULT_QUEUE&lt;BR /&gt;or in your example for Bob:&lt;BR /&gt;$DEFINE SYS$PRINT sys$print1&lt;BR /&gt;for Jane:&lt;BR /&gt;$DEFINE SYS$PRINT print2&lt;BR /&gt;&lt;BR /&gt;Both users would be able to issue the same print command "$PRINT any_file.lis" but the output will appear on different printers.</description>
    <pubDate>Fri, 15 Apr 2005 17:00:30 GMT</pubDate>
    <dc:creator>Bill Hall</dc:creator>
    <dc:date>2005-04-15T17:00:30Z</dc:date>
    <item>
      <title>Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526062#M5474</link>
      <description>Is it possible to "point" a printer device (e.g., LRA0:) or print queue (e.g., sys$print) to different print queues for separate, simultaneous login sessions?  That is, can a pseudo-device or queue be defined that sends its output to user-login-specific print queues?&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;Pseudo device name: ZZA0:&lt;BR /&gt;Bob's Login: ZZA0: sends output to sys$print1&lt;BR /&gt;Jane's Login: ZZA0: sends output to print2&lt;BR /&gt;&lt;BR /&gt;Both are logged in at the same time.&lt;BR /&gt;&lt;BR /&gt;Any suggestions or pointers in the right direction are appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Bobby</description>
      <pubDate>Fri, 15 Apr 2005 15:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526062#M5474</guid>
      <dc:creator>Music</dc:creator>
      <dc:date>2005-04-15T15:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526063#M5475</link>
      <description>It is possible to define logical names that equate to any queue, batch or print.  The logical name can be defined in any appropriate name table, process, group, system, cluster.&lt;BR /&gt;&lt;BR /&gt;I would recommend using SYS$PRINT as a logical name rather than an execution or generic queue name.  You can then define a default value for SYS$PRINT in the system table and define user specific values for users in their process tables via LOGIN.COM.&lt;BR /&gt;&lt;BR /&gt;$DEFINE/SYSTEM SYS$PRINT DEFAULT_QUEUE&lt;BR /&gt;&lt;BR /&gt;In a user's LOGIN.COM:&lt;BR /&gt;&lt;BR /&gt;$DEFINE SYS$PRINT MY_DEFAULT_QUEUE&lt;BR /&gt;or in your example for Bob:&lt;BR /&gt;$DEFINE SYS$PRINT sys$print1&lt;BR /&gt;for Jane:&lt;BR /&gt;$DEFINE SYS$PRINT print2&lt;BR /&gt;&lt;BR /&gt;Both users would be able to issue the same print command "$PRINT any_file.lis" but the output will appear on different printers.</description>
      <pubDate>Fri, 15 Apr 2005 17:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526063#M5475</guid>
      <dc:creator>Bill Hall</dc:creator>
      <dc:date>2005-04-15T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526064#M5476</link>
      <description>Bobby,&lt;BR /&gt;&lt;BR /&gt;if your application submits print-jobs to a print-queue, the logical name scheme described by Bill is the way to go.&lt;BR /&gt;&lt;BR /&gt;But if your application expects to write output directly to a printer device (e.g. LRA0:), you would have to add an additional step. There cannot be 2 devices in the system with the SAME name.&lt;BR /&gt;&lt;BR /&gt;In this case, you could create pseudo terminal devices using&lt;BR /&gt;&lt;BR /&gt;LATCP&amp;gt; CRE PORT LTAnnn: &lt;BR /&gt;&lt;BR /&gt;and set those devices spooled with&lt;BR /&gt;&lt;BR /&gt;$ SET DEV/SPOOL=queue_name LTAnnn:&lt;BR /&gt;&lt;BR /&gt;Then you define your logical name&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/JOB ZZA0: LTAnnn:&lt;BR /&gt;&lt;BR /&gt;(to individual LTA devices for each user in their LOGIN.COM) and have your application send the output to ZZA0:&lt;BR /&gt;&lt;BR /&gt;E.g.&lt;BR /&gt;LTA9000: -&amp;gt; spooled QUEUE_X for user x&lt;BR /&gt;DEF/JOB ZZA0: LTA9000: for user x&lt;BR /&gt;&lt;BR /&gt;LTA9001: -&amp;gt; spooled QUEUE_y for user y&lt;BR /&gt;DEF/JOB ZZA0: LTA9001: for user y&lt;BR /&gt;&lt;BR /&gt;You would need to define ONE LTAnnn: pseudo terminal for each queue, to which the application output should be sent.&lt;BR /&gt;   &lt;BR /&gt;Volker.</description>
      <pubDate>Sat, 16 Apr 2005 02:10:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526064#M5476</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-04-16T02:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526065#M5477</link>
      <description>Bobby,&lt;BR /&gt;&lt;BR /&gt;we use the printqueue, and not the print-to-device scheme.&lt;BR /&gt;&lt;BR /&gt;This may not be relevant if you have few users, but becomes a real issue with 6000+ users and 700+ printers, located over 100+ KM^2.&lt;BR /&gt;&lt;BR /&gt;The way to implement this in a user-friendly, and not-support-intensive way, is by this scheme:&lt;BR /&gt;&lt;BR /&gt;Formalise the /DESCRIPTION for each printer in a way that makes them easy to find for the end-user.&lt;BR /&gt;&lt;BR /&gt;Create a (menu-) program that presents the printers, grouped in a way that is conveniant to the users. Make that program find the current printers dynamically (eg, F$GETQUI), because that collection tends to have high mutation rate.&lt;BR /&gt;&lt;BR /&gt;Upon choice of a printer, generate SYS$LOGIN:DEFINE_SYS$PRINT.COM, a one-liner with obvious content.&lt;BR /&gt;&lt;BR /&gt;In SYLOGIN, execute SYS$LOGIN:DEFINE_SYS$PRINT.COM, and present the /DESCRIPTION.&lt;BR /&gt;&lt;BR /&gt;   This way, the chosen printer remains in effect over sessions, and also for batch jobs. Of course, the user can adapt at will.&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;We even took that some steps further. Since most of the users access the VMS apps from a Citrix desktop using a terminal emulator, (and all usernames for a person on both platforms are defined to be the same), at selection of a VMS app we find the default or chosen Citrix (desktop) printer, and build SYS$LOGIN:DEFINE_SYS$PRINT.COM from that. This we copy to VMS, as well as a file AUTOSTART_VMS.APPLIC that specifies the chosen app. And in SYLOGIN, after defining SYS$PRINT, if AUTOSTART_VMS.APPLIC exists and is less than 60 secs old, then we bypass everything else, directly execute the app, and logout.&lt;BR /&gt;&lt;BR /&gt;Hope to have given you some ideas.&lt;BR /&gt;&lt;BR /&gt;YMMV.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.</description>
      <pubDate>Sat, 16 Apr 2005 05:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526065#M5477</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-04-16T05:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526066#M5478</link>
      <description>Bobby,&lt;BR /&gt;&lt;BR /&gt;The comments preceding mine are correct. You can create a transparent environment, where each group, department, section, and user has defaults, and they all work together well. In some cases, the spooled devices are also part of the question.&lt;BR /&gt;&lt;BR /&gt;My whitepaper, "Inheritance Based Environments in Stand-alone OpenVMS Systems and OpenVMS Clusters" described how to build environments of that type to provide users with a seamless environment tailored to their needs (see the reprint available from &lt;A href="http://www.rlgsc.com/publications/inheritance.html" target="_blank"&gt;http://www.rlgsc.com/publications/inheritance.html&lt;/A&gt; for details)&lt;BR /&gt;&lt;BR /&gt;I hope that the above is helpful.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Sat, 16 Apr 2005 06:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526066#M5478</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2005-04-16T06:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526067#M5479</link>
      <description>I think the correct url is:&lt;BR /&gt;&lt;A href="http://www.rlgsc.com/publications/vmstechjournal/inheritance.html" target="_blank"&gt;http://www.rlgsc.com/publications/vmstechjournal/inheritance.html&lt;/A&gt;&lt;BR /&gt;Probably the classic mistake of writing things from memory and not actually checking them! :-)&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Apr 2005 13:42:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526067#M5479</guid>
      <dc:creator>John Travell</dc:creator>
      <dc:date>2005-04-16T13:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526068#M5480</link>
      <description>I think the problem is more complicated.&lt;BR /&gt;&lt;BR /&gt;In an application, a file should be created that needs to be printed. Depending on the file name, program name, user name, date or whatever conditions that you can imagine, the file must be printed on 0, 1 or more printers. Or it must be e-mailed or faxed or whatever. And printed means also using different forms, different types of printers, different number of copies, ... .&lt;BR /&gt;&lt;BR /&gt;So, in my opinion, you should execute a script instead of a print command and this script should receive all the parameters (e.g. via symbols) and depending on what is wanted, do the necessary.&lt;BR /&gt;&lt;BR /&gt;This doesn't rule out the system of Jan that could be used in parallel (or as an implementation of 1 of the prints).&lt;BR /&gt;&lt;BR /&gt;I implemented this once on Unix but the customer found it "too open" meaning that he didn't wanted to fill the contents of the script.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 18 Apr 2005 01:36:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526068#M5480</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2005-04-18T01:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting printer output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526069#M5481</link>
      <description>Thank you all for the advice.  I'll be back at work tomorrow to play with it.  Your examples have been VERY helpful.&lt;BR /&gt;&lt;BR /&gt;Bobby</description>
      <pubDate>Mon, 18 Apr 2005 08:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirecting-printer-output/m-p/3526069#M5481</guid>
      <dc:creator>Music</dc:creator>
      <dc:date>2005-04-18T08:29:26Z</dc:date>
    </item>
  </channel>
</rss>

