If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Passing custom arguments to command-line db2 processor. Possible?
I have some script bububu.db2, that IMPORTS data from some file:
IMPORT FROM "blablabla.txt" ... INSERT INTO lalala ....
Now blablabla and lalala are hardcoded. Is it possible to supply them as parameters in command line, something like
db2cmd /C db2 -cf bububu.db2 -filename=blablabla.txt -table=lalala
and use some construction like
IMPORT FROM "{filename}" ... INSERT INTO {table} ....
?