CLIST Examples
The following are CLIST examples and operator commands that submit the CLIST examples. As some examples show, you can use symbolic parameters to modify the IBM® Connect:Direct® command at the time of submission. For example purposes, CDDTF is the jobname.
CLIST with Command and No Parameters
The following CLIST SELX command contains one command and no parameters:
|
To execute SELX, type the following operator command.
|
When you issue the operator command, a Select Process command for Processes on the executing queue initiates. As a result, a list of these Processes is displayed.
CLIST with Command and One Parameter
In this example, the CLIST SELQ contains one command and one positional parameter (SUBD).
PROC 1 SUBD SEL PROC WHERE(QUEUE=&SUBD)
The following options present two ways to submit SELQ:
- When you issue the following command, TIMER (timer queue) is substituted
for &SUBD. This command displays all Processes on the timer queue.
F CDDTF,SELQ TIMER
- When you issue the following command, ALL is substituted for &SUBD
in the CLIST SELQ. This command displays all Processes on all queues.
F CDDTF,SELQ ALL
CLIST with Command and Multiple Parameters
In this example, the CLIST SUB contains one command, two positional parameters (PROC and PARMS), and one keyword parameter (SNODE).
|
The following options present four ways to execute SUB:
- When you issue the following command, PAYROLL is substituted for &PROC.
This substitution causes the Process PAYROLL to be submitted.
F CDDTF,SUB PAYROLL
Because no SNODE is specified, the SNODE defaults to OTHER.NODE.
- When you issue the following command, CHECKS is substituted for &PROC
and HOLD=YES is substituted for &PARMS. These cause the Process
CHECKS to be submitted as a held Process.
F CDDTF,SUB CHECKS HOLD=YES
Because no SNODE is specified, the SNODE defaults to OTHER.NODE.
- When you issue this command, ORDERS is substituted for &PROC
and CD.CHICAGO is substituted for &SNODE. These cause the Process
ORDERS to be submitted to run in session with the secondary node called
CD.CHICAGO.
F CDDTF,SUB ORDERS,,SNODE=(CD.CHICAGO)
Because PROC and PARMS are positional parameters, commas are required.
- When you issue the following command, CONFIRM is substituted for &PROC
and HOLD=NO,STARTT=(FRIDAY,NOON) is substituted for &PARMS. These
submit the Process CONFIRM so that it runs at noon on Friday.
F CDDTF,SUB CONFIRM HOLD=NO,STARTT=(FRIDAY,NOON)
The SNODE defaults to OTHER.NODE because no SNODE is specified.
CLIST with Command and %IF %ELSE %EIF
In this example, the CLIST NM contains 1 command and 1 positional parameter.
|
If you enter no operands it displays the entire netmap. If you enter a node it displays that node only.