Data Transformation Engine Execution Commands Reference Guide
Execution Commands Reference Guide
52
Chapter 3 - Examples
This chapter presents a variety of examples involving the execution of maps using
various execution commands in a
RUN() function and from the command line in
UNIX and Windows environments.
Running a Map Located in a Different Directory
From a UNIX command line, enter:
/mercator/mercator /x12/edi.mmc -TIO -IF2!WXR5:1 dtin -OF1B
out.txt
Option Description
/X12/edi.mmc
This specifies the full path and name of the map to be
executed.
-TIO
A trace file is created or all input and output objects that
is placed in the same directory as the map and named
using the <mapname>.mtr file naming convention.
-IF2!WXR5:1 dtin
This changes the source of input card #2 to be a file
named dtin. The other adapter settings for this card
include:
! Do not re-use workfiles.
! If the map successfully executes, delete the dtin file.
! If the file is not available, attempt to access it five
more times at one-second intervals.
-OF1B out.txt
This changes the destination for the data from output
card #1 to be a file named out.txt. The B option causes
any changes to out.txt to be backed out (rolled back), if
the map does not successfully execute. All other adapter
settings are as compiled into the map file.
Note The file locations in this example are relative to the location of the compiled map
file.