PowerExchange for CDC and Mainframe
- PowerExchange for CDC and Mainframe 10.5
- All Products
Informatica_services_installation_directory\isp\bin\infacmd pwx createDatamaps-datamapOutputDirOutput -controlFile ims_advanced.xml -logFile Output\ims_advanced.log-verbosityINFO
<?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 copybooks --> <globalCopybookParserConfig> <startColumn>7</startColumn> <endColumn>72</endColumn> </globalCopybookParserConfig> <!-- Global settings for datamap file name and contents --> <globalGenConfig> <schemaName>IMSADV</schemaName> <datamapName>TRAIN8</datamapName> </globalGenConfig> <datamapInstances> <!-- Datamap 1: Import from a DBD without segment overlays --> <imsDatamapInstance> <importDBDDetails> <filePath> <windowsPath>metadata\train8.dbd</windowsPath> </filePath> </importDBDDetails> <datamapProperties> <mapType>DL1</mapType> <imsSSID>SS1</imsSSID> <pcbNumber>1</pcbNumber> </datamapProperties> </imsDatamapInstance> <!-- Datamap 2: Import from a DBD with both segments overlaid --> <imsDatamapInstance> <genConfig> <datamapName>TRAIN8OVR</datamapName> </genConfig> <importDBDDetails> <filePath> <windowsPath>metadata\train8.dbd</windowsPath> </filePath> </importDBDDetails> <!-- Overlay segment 'STUDENT' with a Cobol copybook --> <overlayDetails> <nativeRecordName>STUDENT</nativeRecordName> <overlayCopybookDetails> <filePath> <windowsPath>metadata\student.cob</windowsPath> </filePath> </overlayCopybookDetails> </overlayDetails> <!-- Overlay segment 'CORSECTN' with a Cobol copybook --> <overlayDetails> <nativeRecordName>CORSECTN</nativeRecordName> <overlayCopybookDetails> <filePath> <windowsPath>metadata\course.cob</windowsPath> </filePath> </overlayCopybookDetails> </overlayDetails> <datamapProperties> <mapType>ODBA</mapType> <imsSSID>SS1</imsSSID> <psbName>psb</psbName> <pcbName>pcb</pcbName> </datamapProperties> </imsDatamapInstance> </datamapInstances> </imsGen> </DatamapGeneration>
***************************************************************** * * COBOL FD DEFINITION FOR STUDENT FILE * ***************************************************************** 01 STUDENT-RECORD. 04 ST-NAME PIC X(040). 04 ST-ADDRESS-1 PIC X(040). 04 ST-ADDRESS-2 PIC X(040). 04 ST-CITY PIC X(030). 04 ST-STATE PIC X(002). 04 ST-ZIP PIC X(009). 04 ST-NUMBER PIC 9(012). 04 ST-BIRTH-DATE. 08 ST-BIRTH-MM PIC 9(002). 08 ST-BIRTH-DD PIC 9(002). 08 ST-BIRTH-YY PIC 9(002). 04 ST-SEX PIC X(001). 04 ST-HEIGHT PIC 9(002). 04 ST-WEIGHT PIC 9(003). 04 ST-HAIR PIC X(005). 04 ST-EYES PIC X(005). 04 ST-DATE-ENROLL-MM PIC 9(002). 04 ST-DATE-ENROLL-YY PIC 9(002). 04 ST-DATE-GRAD-MM PIC 9(002). 04 ST-DATE-GRAD-YY PIC 9(002). 04 ST-TUITION-FEES PIC S9(8) COMP. 04 ST-COURSE-COUNT PIC X(003). 04 ST-COURSE-DATA OCCURS 10. 08 ST-COURSE-CODE PIC 9(005). 08 ST-COURSE-HOURS PIC 9(002). 08 ST-COURSE-TIME PIC X(005). 08 ST-COURSE-DAY PIC X(005). 08 ST-COURSE-INSTRUCTOR PIC X(015). 08 ST-COURSE-BLDG PIC 9(002).
***************************************************************** * * COBOL FD DEFINITION FOR COURSE * ***************************************************************** 01 COURSE. 04 CRS-COURSE PIC X(8). 04 CRS-SECTN PIC 9(1). 04 CRS-DAY PIC 9(1). 04 CRS-BEG PIC X(4). 04 CRS-END PIC X(4). 04 FILLER PIC X(4).
2013-12-05 15:31:03 INFO [MDO_34613] Configuration for this run: location=, user name=, datamap directory=Output, control file=ims_advanced.xml 2013-12-05 15:31:10 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train8.dbd 2013-12-05 15:31:10 INFO [MDAdapter_34101] Fetching file metadata\train8.dbd 2013-12-05 15:31:11 INFO [MDAdapter_34108] Definition CRSEKEY selected 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSCOURS skipped 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSSECTN skipped 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSDAY skipped 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSBEG skipped 2013-12-05 15:31:11 INFO [JDMX2_34801] 2 records imported. 2013-12-05 15:31:11 INFO [JDMX2_34802] 16 fields imported. 2013-12-05 15:31:11 INFO [JDMX2_34803] 3 tables imported. 2013-12-05 15:31:11 INFO [MDO_34619] Datamap file 'Output\IMSADV.TRAIN8.dmp' was written. 2013-12-05 15:31:11 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\train8.dbd 2013-12-05 15:31:11 INFO [MDAdapter_34101] Fetching file metadata\train8.dbd 2013-12-05 15:31:11 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\student.cob 2013-12-05 15:31:11 INFO [MDAdapter_34101] Fetching file metadata\student.cob 2013-12-05 15:31:11 INFO [MDAdapter_34100] Finding metadata. Path filter = metadata\course.cob 2013-12-05 15:31:11 INFO [MDAdapter_34101] Fetching file metadata\course.cob 2013-12-05 15:31:11 INFO [MDAdapter_34108] Definition CRSEKEY selected 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSCOURS skipped 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSSECTN skipped 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSDAY skipped 2013-12-05 15:31:11 INFO [MDAdapter_34109] Redefinition CRSBEG skipped 2013-12-05 15:31:11 INFO [JDMX2_34801] 2 records imported. 2013-12-05 15:31:11 INFO [JDMX2_34802] 35 fields imported. 2013-12-05 15:31:11 INFO [JDMX2_34803] 3 tables imported. 2013-12-05 15:31:11 INFO [MDO_34619] Datamap file 'Output\IMSADV.TRAIN8OVR.dmp' was written. 2013-12-05 15:31:17 INFO [MDO_34614] Run complete: 2 datamap(s) created. 0 error and 0 warning messages.