Hi, I have a somewhat complicated issue (at least to me :-))) that I can't figure out.
I am using PSPad to run my sql commands towards different engines (oracle, sql server, mysql and now hopefully DB2 on mainframe). I am running into trouble when trying to set DB2 up along with the others. I have a powershell script set up as an external application that receives parameters as which server to run against and input- and outputfile. This works fine for all engines except DB2. When the sql command is to be run against DB2 my script issues a cmd /c "c:\Programfiler\IBM\SQLLIB\BIN\db2cmd.exe -c c:\testdb2.cmd" in which the c:\testdb2.cmd file contains the necesarry connection info and issues the actual command: db2 connect to klpsyst user myuser using mypassword db2 -t -v -f C:\A1977041.sql -z C:\A1977041.log The command to be run is in the .sql and the output generated is to end up in the .log file. Now, this just don't work. It does not seem that the db2cmd command is issued at all. When I tested this powershell script in the PowerGUI script editor (for debugging matters), it all worked fine. When I use pspad's command line tool and issue the db2cmd command it works just fine. Anyone who can enlighten me on this issue? I certainly need heeelp! 3-[ Regards, -- <http://forum.pspad.com/read.php?2,48181,48181> PSPad freeware editor http://www.pspad.com
