<?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: Determining &amp;quot;SPOOLED&amp;quot; Device in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995836#M78221</link>
    <description>I sure look silly now with the answer of John.&lt;BR /&gt;&lt;BR /&gt;I mixed it up with another question : how to find the files that are open on a disk when they are not returned by show dev/fi. I didn't get a solution because &lt;BR /&gt;1) I'm unable to install the latest shadowing software &lt;BR /&gt;2) VMS has no way of showing the files&lt;BR /&gt;&lt;BR /&gt;So, I get shadow merges each time I reboot.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
    <pubDate>Tue, 08 Aug 2006 03:28:36 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2006-08-08T03:28:36Z</dc:date>
    <item>
      <title>Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995827#M78212</link>
      <description>We have a number of LTA devices defined which are in turn set to spool output to telnetsym print queues (via the SET DEV/SPOOLED=(que-name, device) LTAnnn: cmd).&lt;BR /&gt;&lt;BR /&gt;Is there a way to use DCL lexicals to start with a print que name and find which LTA device is spooling to it?&lt;BR /&gt;&lt;BR /&gt;If the above can't be done, is it possible to look at an LTA device to see which print que it is spooled to?&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Mon, 07 Aug 2006 13:01:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995827#M78212</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-08-07T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995828#M78213</link>
      <description>This gets the spooled MultiNet devices, so it ought to work for spooled LAT devices as well:&lt;BR /&gt;&lt;BR /&gt;f$GetQUI("DISPLAY_QUEUE", "DEVICE_NAME", "actual_queue_name")</description>
      <pubDate>Mon, 07 Aug 2006 15:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995828#M78213</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2006-08-07T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995829#M78214</link>
      <description>The lexical you suggest returns the queue's printer's DNS name and port number, and not the spooled device I'm looking for.&lt;BR /&gt;&lt;BR /&gt;But your suggestion made me realize that there is probably *no* direct connection between a print queue and any device that may be feeding it, i.e. the print queue doesn't need to know from where it got the print request.&lt;BR /&gt;&lt;BR /&gt;So - my second question: how to look at an LTA device to see what print queue it is spooled to?</description>
      <pubDate>Mon, 07 Aug 2006 15:48:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995829#M78214</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-08-07T15:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995830#M78215</link>
      <description>Jack,&lt;BR /&gt;   Here's an "oldie but goodie" - watch out for formatting problems...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wwwvms.mppmu.mpg.de/vmssig/src/MAR/getspl.mar" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/vmssig/src/MAR/getspl.mar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;   Let us know if it still works...&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 07 Aug 2006 16:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995830#M78215</guid>
      <dc:creator>Dave Lennon</dc:creator>
      <dc:date>2006-08-07T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995831#M78216</link>
      <description>If you have too much trouble with the above, this link looks better to me on a peecee...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://vmsone.com/~decuslib/vaxsig/vax92b/alpha/hints/spooldev.code" target="_blank"&gt;http://vmsone.com/~decuslib/vaxsig/vax92b/alpha/hints/spooldev.code&lt;/A&gt;</description>
      <pubDate>Mon, 07 Aug 2006 16:46:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995831#M78216</guid>
      <dc:creator>Dave Lennon</dc:creator>
      <dc:date>2006-08-07T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995832#M78217</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;  You can use F$DEVICE to scan all LTA devices, and F$GETDVI to determine if they're spooled, and find the device name.&lt;BR /&gt;&lt;BR /&gt;Attached is a sample command procedure&lt;BR /&gt;(one attachment per response, see next for the remainder of your question).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 17:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995832#M78217</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-08-07T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995833#M78218</link>
      <description>Finding all queues pointing at spooled devices can be done with F$GETQUI. An example procedure is attached. &lt;BR /&gt;&lt;BR /&gt;Note the "FREEZE_CONTEXT" on the specific "DISPLAY_QUEUE" - this is required to maintain the context of the wildcard QLOOP. You will also need it on any other "DISPLAY_QUEUE" calls if you want to gather more information about the queue.&lt;BR /&gt;&lt;BR /&gt;Although it works on my system, I'm not certain that it's completely generic. I'm assuming that the queue device name for an LTA queue will be "serial/LTAxxxx" - the quoting of symbol dev is also a bit odd because I was too lazy to strip the double quotes from the device name. If your queue devices names have a different pattern, you'll need to modify the test to suit.</description>
      <pubDate>Mon, 07 Aug 2006 17:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995833#M78218</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-08-07T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995834#M78219</link>
      <description>Oops, just noticed you said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; (Mike) f$GetQUI("DISPLAY_QUEUE", "DEVICE_NAME", "actual_queue_name") &lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;The lexical you suggest returns the &lt;BR /&gt;&amp;gt;queue's printer's DNS name and port &lt;BR /&gt;&amp;gt;number, and not the spooled device I'm &lt;BR /&gt;&amp;gt;looking for. &lt;BR /&gt;&lt;BR /&gt;  On my system it returns, for example, "serial/LTA9999" (including the quotes).&lt;BR /&gt;&lt;BR /&gt;Output from QUISPL.COM is:&lt;BR /&gt;&lt;BR /&gt;Queue CSC$3500 =&amp;gt; LTA9999 spooled to _DSA110:&lt;BR /&gt;Queue CSC$5100 =&amp;gt; LTA9997 spooled to _DSA110:&lt;BR /&gt;Queue CSC$LN17PS =&amp;gt; LTA9995 spooled to _DSA110:&lt;BR /&gt;Queue CSCU$3500 =&amp;gt; LTA9998 spooled to _DSA100:&lt;BR /&gt;Queue OCCPR1 =&amp;gt; LTA9994 spooled to _DSA110:&lt;BR /&gt;Queue OCCPR2 =&amp;gt; LTA9996 spooled to _DSA110:&lt;BR /&gt;&lt;BR /&gt;So now I'm curious about your queues. Are they really LAT devices?&lt;BR /&gt;&lt;BR /&gt;Our startup procedure creates the queues with:&lt;BR /&gt;&lt;BR /&gt;$ MCR LATCP CREATE PORT LTA9994&lt;BR /&gt;$ MCR LATCP SET PORT LTA9994/NODE=server/PORT=port&lt;BR /&gt;&lt;BR /&gt;The queues are then created using DCPS with a P2 value of "auto=(node1,node2)::LTA9994:"&lt;BR /&gt;&lt;BR /&gt;On another system, the LTA based queues have device names looking like "node::LTAnnn:", and F$GETQUI DEVICE_NAME returns just the LTA device name.&lt;BR /&gt;&lt;BR /&gt;So, I've added a test to see if the device name returned by F$GETQUI exists, and assume it might be spooled. No doubt there are numerous other permutations that I don't know about (including the one on your system?). It's almost certainly possible to do what you want, but it may need some fiddling to work out the queue to LTA device mapping.</description>
      <pubDate>Mon, 07 Aug 2006 18:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995834#M78219</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-08-07T18:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995835#M78220</link>
      <description>I searched for the same question (find devivce to which an lta is spooled) in 2004 and found no answer. So, now I simply do set dev /nospool for all spooled lta device (during shutdown, to avoid shadow merges).&lt;BR /&gt;&lt;BR /&gt;VMS isn't perfect : there are sometimes set commands without corresponding show commands (other example is set audit/listener).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 08 Aug 2006 00:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995835#M78220</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-08-08T00:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995836#M78221</link>
      <description>I sure look silly now with the answer of John.&lt;BR /&gt;&lt;BR /&gt;I mixed it up with another question : how to find the files that are open on a disk when they are not returned by show dev/fi. I didn't get a solution because &lt;BR /&gt;1) I'm unable to install the latest shadowing software &lt;BR /&gt;2) VMS has no way of showing the files&lt;BR /&gt;&lt;BR /&gt;So, I get shadow merges each time I reboot.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 08 Aug 2006 03:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995836#M78221</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-08-08T03:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995837#M78222</link>
      <description>OK, sorry, I labled my question incorrectly&lt;BR /&gt;&lt;BR /&gt;I'm not interested in the spooled device (that info can be easily gotten), what I'm trying to find is what *que name" the device is spooled to, ie, in the cmd &lt;BR /&gt;&lt;BR /&gt;$ SET DEV LTAxxx: /SPOOLED=(que-name, disk)&lt;BR /&gt;&lt;BR /&gt;I'm trying to get the que-name when I know the dev name (LTA in this case).&lt;BR /&gt;&lt;BR /&gt;I've looked at the $GETDVI system service docs and don't see anything there.</description>
      <pubDate>Tue, 08 Aug 2006 10:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995837#M78222</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-08-08T10:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995838#M78223</link>
      <description>&lt;!--!*#--&gt;Jack,&lt;BR /&gt;&lt;BR /&gt;the program refered to by David's entry does what you want.&lt;BR /&gt;&lt;BR /&gt;And there's always SDA:&lt;BR /&gt;&lt;BR /&gt;$ sho dev lta1&lt;BR /&gt;&lt;BR /&gt;Device                  Device           Error&lt;BR /&gt; Name                   Status           Count&lt;BR /&gt;LTA1:                   Online spooled       0&lt;BR /&gt;&lt;BR /&gt;$ ANAL/SYS&lt;BR /&gt;SDA&amp;gt; READ SYSDEF&lt;BR /&gt;SDA&amp;gt; SHOW DEV LTA1:&lt;BR /&gt;...&lt;BR /&gt;SDA&amp;gt; exa @(ucb+ucb$l_vcb)+vcb$b_status+1;10&lt;BR /&gt;FFFFFFFF 809217E4 54534554 041101C0  Ã ...TESTÃ¤.......     83082508&lt;BR /&gt;00A54258 90EC3719 00000000 00058268  h........7Ã¬.XBÂ¥.     83082518&lt;BR /&gt;&lt;BR /&gt;The queue name starts at offset VCB$B_STATUS+1 and the length of the string is stored at VCB$B_STATUS, so in this case, the queue name is TEST.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Aug 2006 11:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995838#M78223</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-08-08T11:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995839#M78224</link>
      <description>Volker,&lt;BR /&gt;&lt;BR /&gt;Thanks for pointing me to the macro routine - I originally thought it just returned the spooled device.&lt;BR /&gt;&lt;BR /&gt;1) The macro routine assembles w/o error, &lt;BR /&gt;but when linking I get "undefined symbol IOC$VERIFYCHAN".  What do I need to add to my LINK statement?&lt;BR /&gt;&lt;BR /&gt;2) I'd rather use your ANA/SYS cmds.&lt;BR /&gt;- can that be scripted?&lt;BR /&gt;- looks like the que name starts on a word boundary, but how would I programmatically tell how long the que name is?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 08 Aug 2006 12:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995839#M78224</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-08-08T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995840#M78225</link>
      <description>&lt;!--!*#--&gt;Jack,&lt;BR /&gt;&lt;BR /&gt;the GETSPL.MAR example program is privileged code and needs to be linked against the OpenVMS executive:&lt;BR /&gt;&lt;BR /&gt;$ LINK/SYSEXE GETSPL.OBJ&lt;BR /&gt;&lt;BR /&gt;As this program contains kernel mode code ($CMKRNL_S), it could crash your system.&lt;BR /&gt;&lt;BR /&gt;$ link/sysexe getspl&lt;BR /&gt;$ run getspl&lt;BR /&gt;Device: lta1:&lt;BR /&gt;TEST&lt;BR /&gt;DSA3&lt;BR /&gt;&lt;BR /&gt;I would suggest to add the following line:&lt;BR /&gt;&lt;BR /&gt;        .entry  getspl_k,^m&lt;R2&gt;&lt;BR /&gt;&lt;BR /&gt;        moval   g^lib$sig_to_ret,(FP)   ; prevent crash in case of error&lt;BR /&gt;&lt;BR /&gt;The length of the queue name is stored in the byte at VCB$B_STATUS&lt;BR /&gt;&lt;BR /&gt;SDA&amp;gt; def size= @(@(ucb+ucb$l_vcb)+vcb$b_status)&amp;amp;ff&lt;BR /&gt;SDA&amp;gt; eva size&lt;BR /&gt;Hex = 00000000.00000004   Decimal = 4&lt;BR /&gt;&lt;BR /&gt;This could be scripted. You can send the SDA output to a file by using SDA&amp;gt; SET LOG file, but I would think the GETSPL program is the better way.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/R2&gt;</description>
      <pubDate>Tue, 08 Aug 2006 12:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995840#M78225</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-08-08T12:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Determining "SPOOLED" Device</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995841#M78226</link>
      <description>Volker,&lt;BR /&gt;&lt;BR /&gt;Thanks much.&lt;BR /&gt;&lt;BR /&gt;My management won't allow me to install the privileged code macro, so I will be scripting the SDA solution.  Since I will be starting with the que name, I'm going to have to look through all of the LTA devices for a match, so I'll see how efficient I can make the DCL code.  And I see that SDA throws a warning if there is no associated spooled que.</description>
      <pubDate>Tue, 08 Aug 2006 12:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/determining-quot-spooled-quot-device/m-p/4995841#M78226</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2006-08-08T12:44:52Z</dc:date>
    </item>
  </channel>
</rss>

