Use the steps in the following procedure to run your compliance map with a batch command file.
Running a compliance map
with a batch command file
ECMap includes a utility that creates a batch command file to automatically execute the compliance map. This utility saves all of the specified switches and options that you configured for the compliance map and writes them to the command file. These configurations include all the choices you made on the tabs of the Run Inbound Map window.
In ECMap’s main window, select Build > Run Map. The Run Inbound Map window displays.
Click the Option 2 tab to make it active.
Click Create Batch Command File. The Batch File Name window displays.
The Create Batch Command File button lets you create a DOS batch command file to automatically run the compliance map from a command line.
After you have selected all of the options for running the compliance map, type the full path file name in the text box. This is the location where you store the runmap script
Click OK. The program automatically creates a file that includes remarks and a line containing the runmap executable followed by the switches that correspond to the options selected on the tabs of the Run Inbound Map window.
A sample batch command file for a map appears:
REM Windows/UNIX Inbound Run Command REM Inbound Trace file will be in c:\maps\megaproject\bigcompany REM Log Messages will be in ODBC With Connection String "DSN=ODBCLog" wrmi32 c:\maps\data\hlthinq.x12 -sl "DSN=ODBCLog" -dg c:\maps\megainsurance\biglab -dt "c:\maps\megainsurance\biglab" -it -o -b -wx 0
An explanation of runmap switches is included in the ECRTP Reference Guide. If you are using the ECMap batch command file in a UNIX environment, you must replace wrmi32 (the runmap executable) with mapinrun.
You can add .bat to the file name and run the map from a command line. Then you can do one of the following:
You can edit the switches in the file and then run the map.
If you edit the file from Windows Explorer, do not double-click the file to open it or the batch program will execute. Instead, open it with a text editor or temporarily give the file a different extension.
You can cut and paste information from the file, such as the runmap switches, for use elsewhere.
The batch command file can be executed separately from ECMap, incorporated in another batch command file, or called from another application.
If you are using the ECMap batch command file in a Windows
NT environment and need the map to execute before continuing with
other processing, insert the command &&
before
the wrmi32 command line.
If you require the batch file to pause or wait for an action to take place before proceeding, consider using EC/EDI Gateway for centralized runs.