Using the RUN function

In a RUN function, use adapter commands with the appropriate Input Source Override execution command or the Output Source Override execution command to override particular settings.

The following example shows using a RUN function to specify adapter commands without using a database/query file (.mdq):

RUN ("somemap.mmc",
    "-od1 '-dbtype oracle -connect remotedb -user " + 
    userid:profile + "-password" + password:profile + 
    "-table purchordr'")

In this example, a map named somemap.mmc is being executed. The output of this map is to be inserted in the PurchOrdr table in an Oracle database defined by the RemoteDB connect string. The logon, user ID, and password settings are retrieved from an input card named Profile.

For more information about using the RUN function, refer to the Functions and Expressions documentation.

For more adapter-specific usage information, refer to adapter-specific documentation.