Previous Topic: Call GROUP Clause (Format 3)Next Topic: Device Address Default (Format 5)


Spool Related Operands (Format 4)

This OPERAND clause describes an operand that selects spool files and the unit record devices available to the operand.


[{label}] OPERAND value [{,maximum-length}],TRAN=routine,    {-}
               SPOOLOPT=({ALL|,CON,|{PRT|PUN,RDR}}           {-}
               [SELECT] [{,DEVNONLY,|RADRONLY}])
SPOOLOPT=(PRT,RADRONLY)

You can find one example of how you can use this format in the BACKSPAC model supplied with CA ACF2 for z/ VM: OPERAND PRT,4,TRAN=RUR,SPOOLOPT= (PRT,RADRONLY). In this example, you can specify a printer. The transposition routine TRAN=RUR examines the SPOOLOPT specification PRT,RADRONLY. The operand passes the syntax check if it is a real printer (PRT) that is described to CP and only if you use a real device address (RADRONLY). CA ACF2 for z/ VM checks the RDEVBLOK to ensure the device address cites a real device and that it is a printer.

SPOOLOPT=(PUN,RADRONLY)

The example OPERAND PUN,3,TRAN=RUR,SPOOLOPT=(PUN,RADRONLY) is the same as the previous one, except that you can only specify a punch (PUN) device, provided you refer to its real device address.

SPOOLOPT=RDR

The example OPERAND RDR,6,TRAN=VUR,SPOOLOPT=RDR is taken directly from the CLOSE model supplied with CA ACF2 for z/ VM. Here, you can specify a virtual reader. Because you specified neither RADRONLY nor DEVNONLY, you can also enter the reader name. For example, you can specify the virtual reader as R, Re, Rea, Read, Reade, Reader, RDR, or any virtual address that is a reader (usually 000C).

SPOOLOPT=(CON,PRT,PUN)

The example OPERAND VUR,7,TRAN=VUR,SPOOLOPT=(CON,PRT,PUN) is similar to the previous one, except that you can only specify a console, printer, or punch device.

SPOOLOPT=(PRT,PUN,RDR,DEVNONLY,SELECT)

The example OPERAND RUR,7,TRAN=RUR,SPOOLOPT= (PRT,PUN,RDR,DEVNONLY,SELECT) is taken directly from the CHANGE model supplied with CA ACF2 for z/ VM. Here, you can specify Printer, PRT, PTR, Punch, PCH, Reader, or RDR, provided they are cited by device name. You can also use this operand to select items from the spool queue. The SELECT suboperand of the SPOOLOPT verb is explained in the next section.

SPOOLOPT=SELECT

You can only use SPOOLOPT=SELECT with the following transposition routines:

You can only use SPOOLOPT=({,CON{,PRT{,PUN{,RDR}}}}), {,DEVNONLY| ,RADRONLY}) with the RUR and VUR transposition routines.

You can only use SPOOLOPT=({ALL}{,DEVNONLY| ,RADRONLY}) with the ALLURDEV transposition routine.