How to Pass a Table Name variable within a ODBC Connection?
I have several COM automation jobs where Monarch Classic connects to a data source on an AS400. Usually the connection is hard coded with the Monarch Project. I have a requirement to pass the data source name (e.g. VENAFILE.TABLENAME) where TABLENAME contains the month year (e.g., 0224 within VENAFILE.DSA0224 table name). Is it possible use a dynamically passed the full table name within the COM automation session with an AS400?
The Monarch programmer's guide mentions ODBC connection but does not provide examples. If anyone has experience using user defined variables (specifically data source name) within COM Automation/AS400 sessions, please provide sample VBA or VBScript that I can edit for my purpose.
Many thanks in advance.
Al