Using the foreground interface to export XML templates
Here is an example of exporting an XML template using the base option 7.6.
Process Options Help ────────────────────────────────────────────────────────────────────────────── File Manager Template Export Utility Command ===> Template: Data set name . 'FMN.SAMPLE.TEMPLATE' Member . . . . (Blank or pattern for member list) Filter . . . . Export Data set: Data set name . 'FMN.XML.EXAMPLE' Member mask . . Processing Options: Enter "/" to select option Enter "/" to select option Batch execution / Replace members Advanced member selection / Copybook and criteria only Skip member list / Stats On
Only copybook and criteria information is exported. This means that field or column data like hold, selection, create or alternate heading are not included. Just the basic definition and any criteria included in the template.
Process Options Help ────────────────────────────────────────────────────────────────────────────── File Manager Template Member Selection Row 00001 of 00013 Command ===> Scroll CSR Input data set FMN.SAMPLE.TEMPLATE Export data set FMN.XML.EXAMPLE Name Prompt Type Created Updated Lang Ver Descr _ * * * * * * * * s ABEND BASE 2004/02/11 2011/11/28 12:39:09 COBOL 2 This s AODAO140 DYN 2011/12/19 2012/09/11 11:32:30 NONE 3 s CONVT1 DB2 2012/03/02 2012/09/19 09:16:41 NONE 3 COPY01B BASE 2012/09/12 2012/09/12 06:23:29 PL/I 3 s DJ1E IMS 2008/08/15 2012/08/07 16:53:34 COBOL 3 DJ1ECR1 CRIT 2008/01/12 2009/06/29 16:57:12 PL/I 3 s DJ1ECR2 CRIT 2008/01/12 2009/06/29 16:57:12 PL/I 3 DJ1ECR3 CRIT 2008/01/12 2009/06/29 16:57:12 PL/I 3 s DJ1EVW VIEW 2004/02/12 2012/08/03 17:37:53 COBOL 3 EMPBASE DB2 2009/03/10 2012/09/10 21:13:15 NONE 3 EMPDB2 DB2 2009/06/29 2012/09/10 21:11:43 NONE 3 TEST0102 BASE 2012/01/11 2012/08/07 06:09:56 COBOL 3 THOGAN BASE 2004/08/09 2009/05/18 14:25:55 COBOL 2 **** End of data ****
From this member list you can use the E
or U
prefix
command to edit a template. You can use EX
or VX
command
to edit or view the XML member of the same name in the export data
set.
Press Enter after selecting various templates to be exported.
Process Options Help ────────────────────────────────────────────────────────────────────────────── File Manager Template Member Selection Row 00001 of 00013 Command ===> Scroll CSR Input data set FMN.SAMPLE.TEMPLATE Export data set FMN.XML.EXAMPLE Name Prompt Type Created Updated Lang Ver Descr _ * * * * * * * * ABEND *ExpRepl BASE 2004/02/11 2011/11/28 12:39:09 COBOL 2 This AODAO140 *ExpRepl DYN 2011/12/19 2012/09/11 11:32:30 NONE 3 CONVT1 *ExpRepl DB2 2012/03/02 2012/09/19 09:16:41 NONE 3 COPY01B BASE 2012/09/12 2012/09/12 06:23:29 PL/I 3 DJ1E *ExpRepl IMS 2008/08/15 2012/08/07 16:53:34 COBOL 3 DJ1ECR1 CRIT 2008/01/12 2009/06/29 16:57:12 PL/I 3 DJ1ECR2 *ExpRepl CRIT 2008/01/12 2009/06/29 16:57:12 PL/I 3 DJ1ECR3 CRIT 2008/01/12 2009/06/29 16:57:12 PL/I 3 DJ1EVW *Exportd VIEW 2004/02/12 2012/08/03 17:37:53 COBOL 3 EMPBASE DB2 2009/03/10 2012/09/10 21:13:15 NONE 3 EMPDB2 DB2 2009/06/29 2012/09/10 21:11:43 NONE 3 TEST0102 BASE 2012/01/11 2012/08/07 06:09:56 COBOL 3 THOGAN BASE 2004/08/09 2009/05/18 14:25:55 COBOL 2 **** End of data ****
You can use the foreground utility to generate the batch JCL to run the export.