reorder field in a flat file using GTXGEN on mainframe

Document ID : KB000103789
Last Modified Date : 29/06/2018
Show Technical Document Details
We need to reorder field in a flat file using the mainframe version of GTXGEN. How can this be done using DEFSRC and DEFTGT definitions?
GRIDT01.LIB.RUNJCL(GTXGEN) provides a sample job, that references inputs as delivered in the installation.

The DEFSRC and DEFTGT datasets, in general, are generated from PL/I or COBOL copybooks as described in the documenatation.

The sample job uses these inputs: