how to run datastage job using batch file and running batch file from database
batch file code needed
if job run successfully it should prompt me suceess else fail
how to run datastage job using batch file and running batch
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard. The command is dsjob - you can search DSXchange or the Server Job Developer's Guide (look for Command Line Interface) for examples of how to use it.
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.
Plus you'll either need a Sequence job or custom job control code to do the notification in the case of failure. The former would be easier to arrange with the Notification Activity stage or your launching script could do the same - assuming "prompt me" means "notify me".
You'll also need to explain what "running batch file from database" means, I for one prefer not to guess.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You need to learn how to drive dsjob which is why I provided the manual reference. This command can be asked to set its exit status to that of the job that was requested to be run.
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.
