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: IMS DBD Import with No COBOL Overlay

Example: IMS DBD Import with No COBOL Overlay

This example describes a control file that creates an IMS data map and imports DBD metadata. This example does not import COBOL copybook metadata to overlay each segment.
The createdatamaps utility creates a record and a table for each of the two segments defined in the DBD. The utility also creates a complex table that includes columns from the STUDENT parent record and the CORSECN child record.
Although the DBD redefines the CRSEKEY field in the CORSECN record, the utility generates a table and record for the first redefine only. For IMS data maps, maxRedefines always equals 1. The log file reports which redefine was used and which redefines were skipped.
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 ims_simple.xml -logFile Output\ims_simple.log
-verbosity
INFO
Control File
The control file for this example, ims_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"> <imsGen> <!-- Global settings for datamap file name and contents --> <globalGenConfig> <schemaName>IMSSIMPLE</schemaName> </globalGenConfig> <datamapInstances> <!-- Import from a DBD with default properties --> <imsDatamapInstance> <importDBDDetails> <filePath> <windowsPath>metadata\train8.dbd</windowsPath> </filePath> </importDBDDetails> </imsDatamapInstance> </datamapInstances> </imsGen> </DatamapGeneration>
DBD File
The DBD file used in this example, train8.dbd, contains the following lines:
DBD NAME=DTLSTDNT,ACCESS=(HIDAM,VSAM) DATASET DD1=DTLSTDNT SEGM \ NAME=STUDENT,PARENT=0,FREQ=10000,BYTES=210,PTR=TB LCHILD NAME=(STUDIDX,DTLSTDIX),PTR=INDX FIELD TYPE=C,START=162,BYTES=12,NAME=(ID,SEQ,U) FIELD TYPE=C,START=01,BYTES=40,NAME=PNAME FIELD TYPE=C,START=41,BYTES=40,NAME=ADDRESS1 FIELD TYPE=C,START=81,BYTES=40,NAME=ADDRESS2 FIELD TYPE=C,START=121,BYTES=30,NAME=CITY FIELD TYPE=C,START=151,BYTES=2,NAME=STATE FIELD TYPE=C,START=153,BYTES=9,NAME=ZIP FIELD TYPE=C,START=174,BYTES=6,NAME=BDATE FIELD TYPE=C,START=180,BYTES=1,NAME=SEX FIELD TYPE=C,START=181,BYTES=2,NAME=HEIGHT FIELD TYPE=C,START=183,BYTES=3,NAME=WEIGHT FIELD TYPE=C,START=186,BYTES=5,NAME=HAIR FIELD TYPE=C,START=191,BYTES=5,NAME=EYES FIELD TYPE=C,START=196,BYTES=4,NAME=ENRLMMYY FIELD TYPE=C,START=200,BYTES=4,NAME=GRADMMYY * SEGM NAME=CORSECTN,PARENT=((STUDENT,SNGL)),FREQ=05,BYTES=14,PTR=TB FIELD TYPE=C,START=01,BYTES=14,NAME=(CRSEKEY,SEQ,U) FIELD TYPE=C,START=01,BYTES=08,NAME=CRSCOURS FIELD TYPE=C,START=09,BYTES=01,NAME=CRSSECTN FIELD TYPE=C,START=10,BYTES=01,NAME=CRSDAY FIELD TYPE=C,START=11,BYTES=04,NAME=CRSBEG DBDGEN FINISH END
Log File
The log file for this example, ims_simple.log, contains the following lines:
2013-12-05 15:30:46 INFO [MDO_34613] Configuration for this run: location=, user name=, datamap directory=Output, control file=ims_simple.xml 2013-12-05 15:30:54 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train8.dbd 2013-12-05 15:30:54 INFO [MDAdapter_34101] Fetching file metadata\train8.dbd 2013-12-05 15:30:55 INFO [MDAdapter_34108] Definition CRSEKEY selected 2013-12-05 15:30:55 INFO [MDAdapter_34109] Redefinition CRSCOURS skipped 2013-12-05 15:30:55 INFO [MDAdapter_34109] Redefinition CRSSECTN skipped 2013-12-05 15:30:55 INFO [MDAdapter_34109] Redefinition CRSDAY skipped 2013-12-05 15:30:55 INFO [MDAdapter_34109] Redefinition CRSBEG skipped 2013-12-05 15:30:55 INFO [JDMX2_34801] 2 records imported. 2013-12-05 15:30:55 INFO [JDMX2_34802] 16 fields imported. 2013-12-05 15:30:55 INFO [JDMX2_34803] 3 tables imported. 2013-12-05 15:30:55 INFO [MDO_34619] Datamap file 'Output\IMSSIMPLE.MAP.dmp' was written. 2013-12-05 15:31:01 INFO [MDO_34614] Run complete: 1 datamap(s) created. 0 error and 0 warning messages.
Data Map File
This example creates a data map with the following file name and relative path:
  • Output\IMSSIMPLE.MAP.dmp

0 COMMENTS

We’d like to hear from you!