Hi,
How to access DB2 cmd editor from shell script.
Thanks in advance.....
Regards,
Ragunathan J
Regarding shell script
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 50
- Joined: Mon Sep 25, 2006 11:18 pm
- Location: Chennai
- Contact:
Re: Regarding shell script
First of all why do u need this??? But still if you want to connect to DB2 through shell script then in scrript try out this...
#!/bin/sh
runwin32 cmd
connect to db2 databasename username identified by password...
Now run the script. You will get connected to db2 database.
#!/bin/sh
runwin32 cmd
connect to db2 databasename username identified by password...
Now run the script. You will get connected to db2 database.
sanjeev kumar
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
... and then what? If the script is invoked from DataStage it must provide ALL responses to the shell script, including the command to end the session. I assume, because the question is posted in a DataStage forum, that such is the intention.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.