Sample tdfmaker.JCL file
The following is sample JCL for using tdfmaker:
//TDFMAKER EXEC PGM=TDFMAKER,PARM=`-@PARMS'
//*-------------------------------------------------------------*
//* Load library containing TDFMAKER and DBUTIL
*//*-------------------------------------------------------------*
//STEPLIB DD DSN=<load_library>,DISP=SHR
//*-------------------------------------------------------------*
//* Print datasets
*//*-------------------------------------------------------------*
//SYSPRINT DD SYSOUT=<sysout_class>
//SYSOUT DD SYSOUT=<sysout_class>
//SYSUDUMP DD DUMMY
//*-------------------------------------------------------------*
//* The output TDF file. This must be a variable format file. *
//* Maximum record length is optional; 255 is sufficiently *
//* large while not being too large to allow viewing in ISPF. *
//*-------------------------------------------------------------*
//OUTPUT DD DSN=<tdf_file>,
// DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=255,RECFM=VB),
// UNIT=<unit_adapter command>,
// SPACE=<space_allocation>
//*-------------------------------------------------------------*
//* The -@ option allows TDFMAKER parms optionally to reside *
//* in a file *
//*-------------------------------------------------------------*
//PARMS DD *
OUTPUT
-D <DB2_subsystem_name>
<table_name>
<table_name>
...
/*