Running a mapping using a prefilled script
One way to run a mapping is to use a modified executeMapping.bat file.
About this task
Before you run the mapping, you need to enter all the necessary parameter values inside the executeMapping.bat file.
File parameters
The file executeMapping.bat is in the bin subdirectory in the Integration Composer installation directory. You can edit the parameter values and create different files for different mappings.
- Delete last scan history option
This section implements the -delete option:
REM ======================================= REM CHECK FOR DELETE LAST SCAN HISTORY FLAG REM ======================================= set DELETE= if not {%1} == {-delete} goto setPropFile set DELETE=%1 shift
You can edit this section as follows to delete the last scan history during mapping processing:
Example 1REM ======================================= REM CHECK FOR DELETE LAST SCAN HISTORY FLAG REM ======================================= set DELETE= if not {%1} == {-delete} goto setPropFile set DELETE=-delete shift
- Identification parameters
This section implements the following identification parameters:
set MAPPINGNAME=%1 set REPOSITORYUSER=%2 set REPOSITORYPWD=%3 set SOURCEUSER=%4 set SOURCEPWD=%5 set TARGETUSER=%6 set TARGETPWD=%7
The identification parameters are defined as follows:- MAPPINGNAME
- The name of the predefined mapping; for example, "Tivoli® to DPA".
- REPOSITORYUSER
- The login user name for the Integration Composer repository; for example, maximouser.
- REPOSITORYPWD
- The login password for the Integration Composer repository; for example, maximopw.
- SOURCEUSER
- The login user name for the data source of the discovered source data; for example, discovereddata.
- SOURCEPWD
- The login password for the data source of the discovered source data; for example, discoveredpw.
- TARGETUSER
- The login user name for the target database; for example, maximouser.
- TARGETPWD
- The login password for the target database; for example, maximopw.
You can edit this section as follows to specify values for the various identification parameters to use during mapping processing:
Example 2set MAPPINGNAME="Tivoli to DPA" set REPOSITORYUSER=maximouser set REPOSITORYPWD=******** set SOURCEUSER=discovereddata set SOURCEPWD=******** set TARGETUSER=maximouser set TARGETPWD=********
If any parameter value contains spaces, enclose the value in quotation marks, as follows:set MAPPINGNAME="Tivoli to DPA"
If any parameter value represents a database null, enter two single–quotation marks without a space in between. For example, if you do not have a password for a database, enter two single–quotation marks for this parameter value, as follows:set TARGETPWD=''
Using a scheduling program
You can use a scheduling program, such as Windows scheduler, to run mappings. If you use a Windows scheduler, comment out the line containing the pause command:
:exit
@echo Integration Composer has finished
REM pause
The steps for running the mapping follow: