469,626 Members | 1,460 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Passing custom arguments to command-line db2 processor. Possible?

4
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} ....
?
Dec 8 '06 #1
0 1154

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Romuald Favre | last post: by
7 posts views Thread by m7b52000 | last post: by
11 posts views Thread by Arsen Vladimirskiy | last post: by
1 post views Thread by Hans [DiaGraphIT] | last post: by
4 posts views Thread by MikeY | last post: by
5 posts views Thread by Chris Hieronymus | last post: by
2 posts views Thread by Hakan Örnek | last post: by
5 posts views Thread by kyosohma | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.