| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Print OptiConnect Jobs (PRTOPCJOB) command writes a list of OptiConnect jobs and tasks to a spooled output file or to a database output file. An OptiConnect job or task is a job or task that has one or more OptiConnect conversations attached.
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| JOB | Job name | Qualified object name | Optional |
| Qualifier 1: Job name | Generic name, name, *ALL | ||
| Qualifier 2: User | Generic name, name, *ALL | ||
| RMTJOB | Remote job name | Qualified object name | Optional |
| Qualifier 1: Remote job name | Generic name, name, *ALL | ||
| Qualifier 2: User | Generic name, name, *ALL | ||
| RMTSYS | Remote system | Generic name, name, *ALL | Optional |
| OUTPUT | Output | *PRINT, *OUTFILE | Optional |
| OUTFILE | File to receive output | Qualified object name | Optional |
| Qualifier 1: File to receive output | Name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
| OUTMBR | Output member options | Element list | Optional |
| Element 1: Member to receive output | Name, *FIRST | ||
| Element 2: Replace or add records | *REPLACE, *ADD |
| Top |
Specifies the name of the OptiConnect job or task on the local system.
Qualifier 1: Job name
Qualifier 2: User
| Top |
Specifies the name of the OptiConnect job or task on the remote system.
Qualifier 1: Remote job name
Qualifier 2: User
| Top |
Specifies the name of the remote system.
| Top |
Specifies where the output from the command is sent.
| Top |
Specifies the database file to which the output of the command is directed. If the file does not exist, this command creates a database file in the specified library. If the file is created, the public authority for the file is the same as the create authority specified for the library in which the file is created. Use the Display Library Description (DSPLIBD) command to show the library's create authority.
Qualifier 1: File to receive output
Qualifier 2: Library
Note: If a new file is created, the system uses the IBM-supplied file QAOPCJOB in library QSOC with format name QYYJOB as a model.
| Top |
Specifies the name of the database file member that receives the output of the command.
Element 1: Member to receive output
Element 2: Replace or add records
| Top |
Example 1: Print All OptiConnect Jobs
PRTOPCJOB
This command prints all OptiConnect jobs and tasks.
Example 2: List OptiConnect Jobs in an Outfile
PRTOPCJOB RMTJOB(SOCA*) RMTSYS(SYSTEMA)
OUTPUT(*OUTFILE) OUTFILE(QGPL/OPCJOBS)
This command writes a list of all OptiConnect agent jobs that are running on remote system SYSTEMA to an outfile named OPCJOBS in library QGPL.
| Top |
| Top |