Database execution command: input source override (-ID)

Use the Input Source Override - Database execution command (-ID) to designate a database as the source or you can override one or more of the adapter command settings or database definitions in a RUN function or on the command line.

When you are not using a database/query file (.mdq), the –SOURCE and –STMT commands are mandatory unless there is a default data source specified for DB2® ODBC. For detailed information about DB2 ODBC, see the DB2 Universal Database for z/OS®: ODBC documentation.

The adapter commands are shown using a single quotation mark, which is the Windows syntax. For non-Windows platforms, use two single quotation marks followed by one single quotation mark and end with one single quotation mark followed by two single quotation marks.

Scenario: compiled map source is a database

Database/query file (.mdq) No database/query file (.mdq)
'[-MDQ mdq_file -DBNAME database_name]
[-QUERY query_name|-STMT SQL_stmt]
[-FILE [directory]]
[-VAR name=value…]
[-USER username]
[-PASSWORD password]
[-CCARD|-CSTMT [number]]
[-ROWCNT row_count]
[-AUDIT[G][+] [full_path]]
[{-TRACE|-TRACEERR}[+] [full_path]]'
'-DBTYPE ODBC
-STMT SQL_statement
[-SOURCE datasource]
[-FILE [directory]]
[-VAR name=value…]
[-USER user_ID]
[-PASSWORD password]
[-CCARD|-CSTMT [number]]
[-ROWCNT row_count]
[-AUDIT[G][+] [full_path]]
[{-TRACE|-TRACEERR}[+] [full_path]]'

Scenario: compiled map source is not a database

Database/query file (.mdq) No database/query file (.mdq)
'-MDQ mdq_file
-DBNAME database_name]
-QUERY query_name|-STMT SQL_stmt]
[-FILE [directory]]
[-VAR name=value…]
[-USER username]
[-PASSWORD password]
[-CCARD|-CSTMT [number]]
[-ROWCNT row_count]
[-AUDIT[G][+] [full_path]]
[{-TRACE|-TRACEERR}[+] [full_path]]'
'-DBTYPE ODBC
-STMT SQL_statement
[-SOURCE datasource]
[-FILE [directory]]
[-USER user_ID]
[-PASSWORD password]
[-CCARD|-CSTMT [number]]
[-ROWCNT row_count]
[-AUDIT[G][+] [full_path]]
[{-TRACE|-TRACEERR}[+] [full_path]]'