[fa.info-vax] Concealed print queue names

info-vax@ucbvax.ARPA (08/21/85)

From: munnari!metro.oz!jimr@seismo.CSS.GOV

Lars Palmer asks about giving print queues a concealed or logical name rather
than a physical name under VMS V4.

We use the following in SYSTARTUP.COM:

	$ DEFINE/TRANSLATION=(CONCEALED,TERMINAL)/SYSTEM CHEM$$PRINT TTA2:
	$ SET DEVICE/SPOOLED=(CHEM$PRINT,$INORG) CHEM$$PRINT
	$ INIT/QUEUE/START CHEM$PRINT/ON=CHEM$$PRINT

where

   "$INORG" [exec] = "DRB0:" [concealed,terminal] (LNM$SYSTEM_TABLE)

The queue so defined looks like this to SHOW QUEUE:

	Terminal queue CHEM$PRINT, on CHEM$$PRINT

One can use PRINT/QUEUE=CHEM$PRINT and TYPE/OUTPUT=CHEM$$PRINT successfully.
The need for two different names (CHEM$PRINT for the queue and CHEM$$PRINT
for the spooled device) is annoying, but doesn't cause much trouble in
practice.

On advice from DEC Telephone Support, we also tried

	$ DEFINE/SYSTEM/TRANS=(CONC,TERM) TEST$Q TTB2:
	$ INIT/QUEUE/ON=TEST$Q TEST$Q
	$ START/QUEUE TEST$Q:
	$ PRINT/QUEUE=TEST$Q: file
	$ STOP/NEXT TEST$Q:

Note the colons!  All this works as desired, and now the queue and the
device have the same name.  However, it does not seem to be possible to
get spooling to work: whether one does 

	$ SET DEVICE TEST$Q/SPOOLED=(TEST$Q,$INORG)
or
	$ SET DEVICE TEST$Q/SPOOLED=(TEST$Q:,$INORG)

the command TYPE/OUTPUT=TEST$Q[:] always gives the errors

	%TYPE-CLOSEOUT
	-RMS-DAC
	-SYSTEM-NOTPRINTED
--
Jim Richardson, Pure Mathematics, University of Sydney, NSW 2006, Australia

ACSNET:		jimr@metro.oz			CSNET:	jimr@metro.oz
ARPA:		jimr%metro.oz@seismo.arpa
UUCP:		...!seismo!munnari!metro.oz!jimr