Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using SET and PROC symbols in DFSORT and ICETOOL statements z/OS DFSORT Application Programming Guide SC23-6878-00 |
|
For jobs that directly invoke DFSORT (PGM=SORT or PGM=ICEMAN) or ICETOOL (PGM=ICETOOL), you can construct DFSORT symbols that incorporate JCL PROC or SET symbols as well as text and system symbols. You can then use those constructed DFSORT symbols in DFSORT and ICETOOL control statements in the same way you use regular DFSORT symbols. As a simple example, if you wanted to use JCL SET symbols named
XDSN and YDSN in a DFSORT statement, you could code the following:
For each JPn"string" parameter found in EXEC PARM, a DFSORT symbol
in the following form is constructed, and treated as if it was specified
in the SYMNAMES data set (even if a SYMNAMES data set is not actually
present):
Up to ten symbols, JP0-JP9, can be set up this way. For the previous example, the following
DFSORT symbols are constructed and treated as if they were specified
in SYMNAMES:
These symbols are placed in the Symbol Table as:
When JP1 and JP2 are used in the OMIT statement, the statement
is transformed to:
Here is another example using ICETOOL:
The following DFSORT symbol is constructed:
If the job is run on Friday, 'FRI' is substituted for the &WDAY
system symbol and the following is placed in the Symbol Table:
When JP0 is used in the DISPLAY statement, the statement is transformed
to:
Note: For a JOINKEYS application, you can
use JCL SET and PROC symbols (JPn) in DFSORT control statements for
the main task, but you cannot use JCL SET and PROC symbols (JPn) in
DFSORT control statements for the subtasks.
|
Copyright IBM Corporation 1990, 2014
|