Running your map

Sybase is known for its high speed and quality performance. Map generation results in an efficient map run process, which in turn contributes to the speed and throughput of Sybase’s mapping product.

Running your map involves:

The final steps in the mapping process are to generate and run your map. During generation, your map is checked to make sure that everything is set up properly. When you run your map, the outbound EDI file or inbound application file is actually built.

Generating the map produces the .map file, which contains all the mapping instructions you created. Running the map – with the ECRTP runtime program - interprets the .map file and maps the data.

StepsGenerating your map

When you generate a map, you compile all your business rules and logic into your finished map

  1. Select Generate Map (the yellow traffic light) on the toolbar at the top of the window. The Generate Map window displays.

  2. Make sure that the Multiple Files check box is not checked.

    Multiple Files is checked by default. Left-click on the check box to uncheck it, or you receive a warning – “All Recd Files with Multiple Recs must have Record Type Fields”

  3. Select Run on the Generate Map window. Messages flash across the text box until the following message appears: Map Generation Completed Successfully.

  4. You can view the results of the map generation process by selecting View Log. The Generate Log window displays.

  5. Select Exit to return to the main ECMap window.

StepsRunning your map

Map files can be distributed and deployed with the runtime engine.

  1. Select Run Map (the green traffic light) on the toolbar at the top of the window. The Run Any-to-Any Map window displays. It has several tabs – Required, Option 1, Option 2, File Alias, ODBC Alias, Parameters, I/O Redirect, and Web Script.

  2. ECMap automatically populates Map Name and Map Directory. Since you configured an ODBC log database, the Log Type is automatically populated with ODBC Log. On the Option 1 tab, Short Trace has already been entered as the default Trace Type, and 10000 has already been entered as the Max Memory Cross-Reference. The Number of Maps in Memory is optional. On the Option 1 tab, select Long Trace.

  3. Select Run Map.

  4. Select View Trace to review the trace log. The Trnn.dat-Notepad window displays, with the message “Maprun Complete – No Errors Encountered” if the map run was successful. If there are errors, you can use the information in this log to correct your errors and then run the map again.

  5. Close the Any-to-Any Map window to return to the main ECMap window.

  6. You have now successfully run your map - which read XML input data and wrote output to the ODBC Inventory and Billing database.

    If you want to view the output, open Microsoft Access and view the PO_DATA.mdb database.