Routing data sets
You can route a specific data set by using the DEST parameter of the DD statement, a specific data set or group of data sets by using the OUTPUT JES2 control statement or the OUTPUT JCL statement, or the entire print/punch output for the job by using the /*ROUTE statement.
JES2 uses the destination specified for a data set on the OUTPUT JES2 control statement, the OUTPUT JCL statement, or the DD JCL statements. However, output data sets routed to a remote workstation using the OUTPUT or DD JCL statements, or the DEST= DD parameter cannot be altered by a remote operator; the job-level default controls access to those data sets. To discover the job-level default, enter the $D J1-999 operator command. For data sets with no destination specified, JES2 uses the destination on the /*ROUTE statement or the default destination specified on the input devices from which the job was submitted.
The DEST=parameter on the DESTID(jxxxxxxx) initialization statement provides route codes for destinations on this node and other nodes.A complete destination specifies both a second-level destination and first-level destination for SYSOUT. Second-leveldestinations specify the final destination (LOCAL, Rmmmm, Unnnn, userid) at a node (the first-level destination) specified previously on either a /*ROUTE PRT or a /*ROUTE PUN JES2 control statement, or defaulted as specified below. For more information on how to specify and use destination identifiers (destids), see Using destination identifiers to route output.