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: VSAM RRDS Data Maps with Multiple Records and Tables

Example: VSAM RRDS Data Maps with Multiple Records and Tables

This example describes a control file that creates two VSAM RRDS data maps. The imported copybook metadata includes REDEFINES statements, and the data maps that are created contain multiple records and tables.
This example is similar to the one for creating SEQ data maps with multiple records and tables. For more information about how the REDEFINES statements in the COBOL copybook result in multiple records and tables, see Example: SEQ Data Map with Multiple Records and Tables.
Because the control file sets the value of GlobalMapType to RRDS, the example creates RRDS data maps.
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 vsam_advanced.xml -logFile Output\vsam_advanced.log -verbosity INFO
Control File
The control file for this example, vsam_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"> <vsamGen> <!-- 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>VSAMADV</schemaName> <datamapName>TRAIN6</datamapName> </globalGenConfig> <!-- Global access method for VSAM datamaps --> <globalMapType>RRDS</globalMapType> <datamapInstances> <!-- Datamap 1: maxRedefines is 2 from global settings, resulting in 2 datamap records --> <vsamDatamapInstance> <importCopybookDetails> <filePath> <windowsPath>metadata\train61.cob</windowsPath> </filePath> </importCopybookDetails> <datamapProperties> <vsamFileName> <zosPath>COM.INFA.RRDS1</zosPath> </vsamFileName> </datamapProperties> </vsamDatamapInstance> <!-- Datamap 2: maxRedefines value overridden to 6, resulting in 6 datamap records --> <vsamDatamapInstance> <genConfig> <datamapName>TRN6REDEF</datamapName> </genConfig> <importCopybookDetails> <filePath> <windowsPath>metadata\train61.cob</windowsPath> </filePath> <parserConfig> <maxRedefines>6</maxRedefines> </parserConfig> </importCopybookDetails> <datamapProperties> <vsamFileName> <zosPath>COM.INFA.RRDS2</zosPath> </vsamFileName> </datamapProperties> </vsamDatamapInstance> </datamapInstances> </vsamGen> </DatamapGeneration>
COBOL Copybook
This example imports metadata from the train61.cob copybook. For the contents of this copybook, see Example: Simple SEQ Data Map.
Log File
The log file for this example, vsam_advanced.log, contains the following lines:
2013-12-05 15:30:30 INFO [MDO_34613] Configuration for this run: location=, user name=, datamap directory=Output, control file=vsam_advanced.xml 2013-12-05 15:30:38 INFO [MDAdapter_34100] Finding metadata. Path filter = COM.INFA.RRDS1 2013-12-05 15:30:38 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train61.cob 2013-12-05 15:30:38 INFO [MDAdapter_34101] Fetching file metadata\train61.cob 2013-12-05 15:30:38 INFO [MDO_34612] Copybook 'MASTER_REC' has 6 possible layouts (Maximum configured limit is 2). 2013-12-05 15:30:39 INFO [JDMX2_34801] 2 records imported. 2013-12-05 15:30:39 INFO [JDMX2_34802] 18 fields imported. 2013-12-05 15:30:39 INFO [JDMX2_34803] 2 tables imported. 2013-12-05 15:30:39 INFO [MDO_34619] Datamap file 'Output\VSAMADV.TRAIN6.dmp' was written. 2013-12-05 15:30:39 INFO [MDAdapter_34100] Finding metadata. Path filter = COM.INFA.RRDS2 2013-12-05 15:30:39 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train61.cob 2013-12-05 15:30:39 INFO [MDAdapter_34101] Fetching file metadata\train61.cob 2013-12-05 15:30:39 INFO [MDO_34612] Copybook 'MASTER_REC' has 6 possible layouts (Maximum configured limit is 6). 2013-12-05 15:30:39 INFO [JDMX2_34801] 6 records imported. 2013-12-05 15:30:39 INFO [JDMX2_34802] 54 fields imported. 2013-12-05 15:30:39 INFO [JDMX2_34803] 6 tables imported. 2013-12-05 15:30:39 INFO [MDO_34619] Datamap file 'Output\VSAMADV.TRN6REDEF.dmp' was written. 2013-12-05 15:30:44 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\VSAMADV.TRAIN6.dmp
  • Output\VSAMADV.TRN6REDEF.dmp

0 COMMENTS

We’d like to hear from you!