Previous Topic: TARGET Keyword—Node AssignmentNext Topic: THREADS Keyword—Maximum Number of PTHREAD Created Threads


Examples: TARGET keyword

This example adds data sets beginning with SYS1. to the Accounting Department and transmit them to all nodes whose names start with R:

TSS ADDTO(ACCDPT) DSNAME(SYS1.)
                  TARGET(R*)
                  WAIT(Y)

This example removes the data sets the administrator enters:

TSS REMOVE(ACCDPT) DSNAME(SYS1.)
                   TARGET(R*)
                   WAIT(Y)

This example grants USER01 ownership of the ABC123 data set, propagates to the local node and all nodes defined in the CPFNODES control option, because a TARGET of * is specified.

TSS ADDTO(USER01) DSNAME(ABC123)
                  TARGET(*)

This example only executes on the local node (as specified by the =).

TSS ADDTO(USER01) DSNAME(ABC123)
                  TARGET(=)

The example displays the users on CPU1, CPU2, and the local node that have access to payroll data:

TSS WHOHAS DSNAME(PAYROLL.)
           TARGET(CPU1,CPU2)
           WAIT(Y)

This example grants ownership of the SYS1 data set prefix to DEPT01 on all remote R‑prefixed nodes identified by the CPFNODES control option:

TSS ADDTO(DEPT01) DSNAME(SYS1.)
                  TARGET(R*)
                  WAIT(Y)

This example displays the users on CPU1, CPU2 and the local node that have access to the PAYROLL data set prefix:

TSS WHOHAS DSNAME(PAYROLL.)TARGET(CPU1,CPU2)
           WAIT(Y)