Using a DFSORT or REXX procedure

You can specify an existing DFSORT or REXX procedure, or create a new one, to further enhance the way in which data is selected and printed.

If you have a template, first use the selection criteria within the template to select your data. For more sophisticated tasks, use DFSORT statements to select data, manipulate the output records, and to write to other files. Use REXX to execute other functions that are provided by Z Data Tools, and to perform complex tasks that cannot be achieved any other way.

Note: In REXX procedures for the Print Utility, avoid using the PRINT() function, as its output is interspersed with the output from the Print Utility.

For general information about using DFSORT or REXX procedures, see Enhancing Z Data Tools processing.