In article <e0**********@newsreader1.utanet.at>,
pe**************@apk.at
says...
hi newsgroup,
is there a way to pass a parameter (e.g. password) to a db2script?
Example:
db2cmd /c db2 -t -fscript.clp
script.clp:
----------
connect to mydatabase user myself using password;
export to mytable.ixf of ixf messages mytable.msg select * from mytable;
connect reset;
-----------
No, unfortunately it isn't.
I always use rexx scripts to run the DB2 commmands. If you want/need to
get used to rexx and DB2 you can find two articles at developersworld at
the following (wrapped) links:
Script for DB2 Universal Database using REXX: Learn REXX fast
at
http://www-128.ibm.com/developerwork...echarticle/dm-
0508fosdick/index.html?ca=drs-
and
Script for DB2 Universal Database using REXX: Quick DB2 UDB scripting
at
http://www-128.ibm.com/developerwork...echarticle/dm-
0508fosdick1/index.html?ca=drs-
Offcourse other scripting languages can do (almost) the same or more
then rexx.