SP-DEVICE


Reassigns a logical device type to a formqueue.

 

PROMPT

UNIX
FORM-QUEUE DEVICE-TYPE(LPTR,TAPE,PORT,PROG) DEVICE NAME:

WINDOWS
FORM-NAME DEV TYPE(LPTR,TAPE,PORT,PROG,NT) DEVICE NAME:

COMMAND SYNTAX

SP-DEVICE formqueue devicetype devicename

 

SYNTAX ELEMENTS

formqueue is the formqueue name. Up to 20 alphabetic, numeric or special characters (excluding asterisks and embedded spaces). The first character of the formqueue name must be alphabetic.  Only the first fifteen characters are displayed. The complete 20 character name can be displayed by the formtype screen.

devicetype is the logical device type to be assigned:

LPTR directly despooled device.  Note - Cannot HOLD since print jobs are directly sent to O/S spooler
TAPE jBASE tape device
PORT terminal device (Also used when slave printing, see PORT-DESPOOL)
PROG send to a device via a program (usually lp)
0 no device
NT directly despooled to windows printername.  Note - Cannot HOLD as with LPTR

devicename is the device name or program command to which output will be despooled.

 

NOTES

Parameters must be entered in the order shown in the syntax description. You will be prompted for any missing parameters.

There is no limit to the number of formqueues which can be created.

Examples

Change print queue MAINPTR to print to printer HPLaserJet via program lp
SP-DEVICE MAINPTR PROG lp -d HPLaserJet

Change print queue TAPE1 to print to the DAT0 tape drive
SP-DEVICE TAPE1 TAPE DAT0

Windows only....

Change print queue SERVERDFLT to print directly to the windows server default printer
SP-DEVICE SERVERDFLT NT  (Will prompt for DEVICE NAME: press <Enter>)

Change print queue APOLLO to print directly to the Apollo B/W printer on the windows server
SP-DEVICE APOLLO NT -d "Apollo B/W"

Change print queue ACCOUNTING to print directly to LaserJet on ACCOUNTING server
SP-DEVICE ACCOUNTING NT -d \\ACCOUNTING\LaserJet

 


Spooler