P Command - Stop Virtual Printer Activity

Use this P command to terminate the session between a virtual printer and an application.
spool12
Use this P command to terminate the session between a virtual printer and an application.
This command has the following format:
P,vpiname[.session] [,V]
  • vpiname
    Defines the name of the virtual printer with which sessions must be terminated.
  • V
    Indicates if a VPSOPT=6 parameter is specified. This allows the virtual printer name and the real printer name to be the same. It also indicates that the Stop command is directed to the virtual printer and not the real printer.
    The virtual printer session will be scheduled for termination, which means that when all active work has been completed, the VTAM session with the node is terminated.
  • session
    Defines the activities of the session that must be terminated. It also specifies the name of the controlling application, automatic startup of a session with this application will not take place again until an S command has been issued.
Example
This example terminates the session with VDPTPRT1.
P,VDPTPRT1
This example terminates session with VDPTPRT1.
P,VDPTPRT1,V
This example stops files being received on VDPTPRT1 from sessions with TESTCICS.
P,VDPTPRT1.TESTCICS