Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange Utilities
  3. createdatamaps - Data Map Creation Utility
  4. DTLCCADW - Adabas PCAT Utility
  5. DTLCUIML - IMS Log Marker Utility
  6. DTLINFO - Release Information Utility
  7. DTLINFOX - Enhanced Release Information Utility
  8. DTLREXE - Remote Execution Utility
  9. DTLUAPPL - Restart Token Utility
  10. DTLUCBRG - Batch Registration Utility
  11. DTLUCDEP - CDEP Maintenance Utility
  12. DTLUCSR2 - IDMS SR2 and SR3 Records Utility
  13. DTLUCUDB - DB2 for Linux, UNIX, and Windows CDC Utility
  14. DTLULCAT and DTLULOGC - IDMS Log Catalog Utilities
  15. DTLURDMO - Data Map Utility
  16. DTLUTSK - Task Control Utility
  17. EDMLUCTR - Log Scan and Print Utility
  18. EDMUOPTS - Service Aid Utility
  19. EDMXLUTL - Event Marker Utility
  20. HOSTENT - TCP/IP Address Reporter Utility
  21. PWXCATMY - MySQL Catalog Utility
  22. PWXUCCLPRT - Print Log Summary Utility
  23. PWXUCDCT - Logger for Linux, UNIX, and Windows Utility
  24. PWXUCREG - Capture Registration Utility
  25. PWXUMAP - Map List Utility
  26. PWXUCRGP - Capture Registrations Print Utility
  27. PWXUDMX - Data Maps Update Time ECSA Memory Utility
  28. PWXUGSK - SSL Reporting Utility
  29. PWXUSSL - PowerExchange SSL Reporting Utility
  30. WRKJRNLCKE- Journal Lock Table Utility for IBM i

Example: SEQ Data Map with Multiple Records and Tables

Example: SEQ Data Map with Multiple Records and Tables

This example describes a control file that creates two SEQ data maps. The imported copybook metadata includes REDEFINES statements, and the data maps that are created contain multiple records and tables.
The example contains global elements and two DatamapInstance elements. At the global level, maxRedefines is set to 2. The second data map instance overrides this setting with a value of 6.
Both data maps import metadata from train61.dat, which includes the following redefinitions:
  • BIN-NO-X and BIN-NO-9 both redefine BIN-NO.
  • OTHER-DATE redefines MASTER-DATE.
These redefintions result in six combinations of fields. Because the global MaxRedefines setting of 2 is in effect for the first data map, records are created for only the first two combinations:
  • BIN-NO, MASTER-DATE
  • BIN-NO, OTHER-DATE
Because the MaxRedefines setting of 6 is in effect for the second data map, records are created for all six combinations:
  • BIN-NO, MASTER-DATE
  • BIN-NO, OTHER-DATE
  • BIN-NO-X, MASTER-DATE
  • BIN-NO-X, OTHER-DATE
  • BIN-NO-9, MASTER-DATE
  • BIN-NO-9, OTHER-DATE
Command Line
To run this example on the Informatica services machine, enter the following command at the command line:
Informatica_services_installation_directory
\isp\bin\infacmd pwx createDatamaps
-datamapOutputDir
Output -controlFile seq_advanced.xml -logFile Output\seq_advanced.log
-verbosity
INFO
Control File
The control file for this example, seq_advanced.xml, contains the following lines:
<?xml version="1.0" encoding="UTF-8"?> <!-- NOTE: Metadata file paths in this sample control file are relative to current directory. If 'infacmd' command is issued from a different directory, all relative file paths must be replaced with absolute file paths. --> <!-- xmlSchemaVersion set to 1.0 --> <DatamapGeneration xmlSchemaVersion="1.0" xmlns="http://com.informatica.cmd.pwx.createdatamaps/DatamapGeneration"> <seqGen> <!-- Global settings for copybooks --> <globalCopybookParserConfig> <startColumn>7</startColumn> <endColumn>72</endColumn> <maxRedefines>2</maxRedefines> </globalCopybookParserConfig> <!-- Global settings for datamap file name and contents --> <globalGenConfig> <schemaName>SEQADV</schemaName> <datamapName>TRAIN6</datamapName> </globalGenConfig> <datamapInstances> <!-- Datamap 1: maxRedefines is 2 from global settings, resulting in 2 datamap records --> <seqDatamapInstance> <importCopybookDetails> <filePath> <windowsPath>metadata\train61.cob</windowsPath> </filePath> </importCopybookDetails> <datamapProperties> <seqFileName> <zosPath>COM.INFA.SEQ1</zosPath> </seqFileName> </datamapProperties> </seqDatamapInstance> <!-- Datamap 2: maxRedefines value overridden to 6, resulting in 6 datamap records --> <seqDatamapInstance> <genConfig> <datamapName>TRN6REDEF</datamapName> </genConfig> <importCopybookDetails> <filePath> <windowsPath>metadata\train61.cob</windowsPath> </filePath> <parserConfig> <maxRedefines>6</maxRedefines> </parserConfig> </importCopybookDetails> <datamapProperties> <seqFileName> <zosPath>COM.INFA.SEQ2</zosPath> </seqFileName> </datamapProperties> </seqDatamapInstance> </datamapInstances> </seqGen> </DatamapGeneration>
COBOL Copybook File
The COBOL copybook for the data map in this example, tran61.cob, contains the following lines:
00001 * TRAIN6 EXAMPLE COBOL COPYBOOK 00002 01 MASTER_REC. COL 73-80 00003 05 ACCOUNT_NO PIC X(9). COL 73-80 00004 05 REC_TYPE PIC X. COL 73-80 00004 05 AMOUNT PIC S9(4)V99 COMP-3. COL 73-80 00005 05 BIN-NO PIC S9(8) COMP. COL 73-80 00006 05 BIN-NO-X REDEFINES BIN-NO PIC XXXX. COL 73-80 00006 05 BIN-NO-9 REDEFINES BIN-NO PIC 9(4). COL 73-80 00007 05 DECIMAL-NO PIC S999. COL 73-80 00008 05 MASTER-DATE. COL 73-80 00009 10 DATE-YY PIC 9(2). COL 73-80 00010 10 DATE-MM PIC 9(2). COL 73-80 00011 10 DATE-DD PIC 9(2). COL 73-80 00012 05 OTHER-DATE REDEFINES MASTER-DATE. COL 73-80 00013 10 OTHER-YY PIC 9(2). COL 73-80 00014 10 OTHER-MM PIC 9(2). COL 73-80 00015 10 OTHER-DD PIC 9(2). COL 73-80
Log File
The log file for this example, seq_advanced.log, contains the following lines:
2013-12-05 15:29:57 INFO [MDO_34613] Configuration for this run: location=, user name=, datamap directory=Output, control file=seq_advanced.xml 2013-12-05 15:30:05 INFO [MDAdapter_34100] Finding metadata. Path filter = COM.INFA.SEQ1 2013-12-05 15:30:05 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train61.cob 2013-12-05 15:30:05 INFO [MDAdapter_34101] Fetching file metadata\train61.cob 2013-12-05 15:30:05 INFO [MDO_34612] Copybook 'MASTER_REC' has 6 possible layouts (Maximum configured limit is 2). 2013-12-05 15:30:06 INFO [JDMX2_34801] 2 records imported. 2013-12-05 15:30:06 INFO [JDMX2_34802] 18 fields imported. 2013-12-05 15:30:06 INFO [JDMX2_34803] 2 tables imported. 2013-12-05 15:30:06 INFO [MDO_34619] Datamap file 'Output\SEQADV.TRAIN6.dmp' was written. 2013-12-05 15:30:06 INFO [MDAdapter_34100] Finding metadata. Path filter = COM.INFA.SEQ2 2013-12-05 15:30:06 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train61.cob 2013-12-05 15:30:06 INFO [MDAdapter_34101] Fetching file metadata\train61.cob 2013-12-05 15:30:06 INFO [MDO_34612] Copybook 'MASTER_REC' has 6 possible layouts (Maximum configured limit is 6). 2013-12-05 15:30:06 INFO [JDMX2_34801] 6 records imported. 2013-12-05 15:30:06 INFO [JDMX2_34802] 54 fields imported. 2013-12-05 15:30:06 INFO [JDMX2_34803] 6 tables imported. 2013-12-05 15:30:06 INFO [MDO_34619] Datamap file 'Output\SEQADV.TRN6REDEF.dmp' was written. 2013-12-05 15:30:12 INFO [MDO_34614] Run complete: 2 datamap(s) created. 0 error and 0 warning messages.
Data Map Files
This example creates data maps with the following file names and relative paths:
  • Output\SEQADV.TRAIN6.MAP.dmp
  • Output\SEQADV.TRN6REDEF.dmp
The schema name for each data map is taken from the global settings. The data map name for the first and second data maps is taken from the global setting and the data map instance setting, respectively.

0 COMMENTS

We’d like to hear from you!