How to specify the table name by using variables to output CSV
Posted: 11 Jan 2017, 10:13
Hi,
The customer would like to output CSV data from the table using selectSQLcommand like Tutorial 6 - Tables and XML Documents.
They would like to specified the table name by using variables ('B'+JOB number).
Is it possible to specify the name of table (which output CSV data from) by using variables?
If Yes, could you please let me kno how?
e.g.
DefineObjectInstance {
className = "DynamicTable",
name = "Example2",
source = "sql",
selectSQLcommand = "EMPNO, SURNAME FROM DCXPGMLIB.<<File name variables>>",
resultColumnNames = { "TEXT1", "TEXT2" },
};
I appreciate your kind advice.
Best Regards,
Megumi Sawada
The customer would like to output CSV data from the table using selectSQLcommand like Tutorial 6 - Tables and XML Documents.
They would like to specified the table name by using variables ('B'+JOB number).
Is it possible to specify the name of table (which output CSV data from) by using variables?
If Yes, could you please let me kno how?
e.g.
DefineObjectInstance {
className = "DynamicTable",
name = "Example2",
source = "sql",
selectSQLcommand = "EMPNO, SURNAME FROM DCXPGMLIB.<<File name variables>>",
resultColumnNames = { "TEXT1", "TEXT2" },
};
I appreciate your kind advice.
Best Regards,
Megumi Sawada