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. DTLREXE - Remote Execution Utility
  8. DTLUAPPL - Restart Token Utility
  9. DTLUCBRG - Batch Registration Utility
  10. DTLUCDEP - CDEP Maintenance Utility
  11. DTLUCSR2 - IDMS SR2 and SR3 Records Utility
  12. DTLUCUDB - DB2 for Linux, UNIX, and Windows CDC Utility
  13. DTLULCAT and DTLULOGC - IDMS Log Catalog Utilities
  14. DTLURDMO - Data Map Utility
  15. DTLUTSK - Task Control Utility
  16. EDMLUCTR - Log Scan and Print Utility
  17. EDMXLUTL - Event Marker Utility
  18. HOSTENT - TCP/IP Address Reporter Utility
  19. PWXCATMY - MySQL Catalog Utility
  20. PWXUCCLPRT - Print Log Summary Utility
  21. PWXUCDCT - Logger for Linux, UNIX, and Windows Utility
  22. PWXUCREG - Capture Registration Suspend Utility
  23. PWXUCRGP - Capture Registrations Print Utility
  24. PWXUDMX - Data Maps Update Time ECSA Memory Utility
  25. PWXUGSK - SSL Reporting Utility for z/OS
  26. PWXUMAP - Map List Utility
  27. PWXUSSL - PowerExchange SSL Reporting Utility

Example: Simple SEQ Data Map

Example: Simple SEQ Data Map

This example describes a control file that creates a data map for a sequential data source and imports simple copybook metadata.
The control file defines the following properties:
  • Global properties: schema name
  • Data map instance properties: copybook location
Default values for the following elements are defined in the schema file:
  • seqFileName = file.dat
  • datamapName = MAP
  • maxRedefines = 1
The copybook includes REDEFINES statements that define six possible layouts. Because maxRedefines = 1, a record and table are created for the first combination only: BIN-NO, MASTER-DATE. For more information, see the following topics:
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_simple.xml -logFile Output\seq_simple.log
-verbosity
INFO
Control File
The control file for this example, seq_simple.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 datamap file name and contents --> <globalGenConfig> <schemaName>SEQSIMPLE</schemaName> </globalGenConfig> <datamapInstances> <!-- Import from a copybook with default properties --> <seqDatamapInstance> <importCopybookDetails> <filePath> <windowsPath>metadata\train61.cob</windowsPath> </filePath> </importCopybookDetails> </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 this example, seq_simple.log, contains the following lines:
2013-12-05 15:29:41 INFO [MDO_34613] Configuration for this run: location=, user name=, datamap directory=Output, control file=seq_simple.xml 2013-12-05 15:29:49 INFO [MDAdapter_34100] Finding metadata. Path filter = file.dat 2013-12-05 15:29:49 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train61.cob 2013-12-05 15:29:49 INFO [MDAdapter_34101] Fetching file metadata\train61.cob 2013-12-05 15:29:50 INFO [MDO_34612] Copybook 'MASTER_REC' has 6 possible layouts (Maximum configured limit is 1). 2013-12-05 15:29:50 INFO [JDMX2_34801] 1 records imported. 2013-12-05 15:29:50 INFO [JDMX2_34802] 9 fields imported. 2013-12-05 15:29:50 INFO [JDMX2_34803] 1 tables imported. 2013-12-05 15:29:50 INFO [MDO_34619] Datamap file 'Output\SEQSIMPLE.MAP.dmp' was written. 2013-12-05 15:29:55 INFO [MDO_34614] Run complete: 1 datamap(s) created. 0 error and 0 warning messages.
Data Map Files
This example creates a data map with the following file name and relative path:
  • Output\SEQSIMPLE.MAP.dmp

0 COMMENTS

We’d like to hear from you!