Hi,
Is there any way of triggering a job using C (without using dsjob)?
Arun
Triggering a Job Using C code
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi,
be aware that (at least in version 6 and lower)
the dll files named in the docs starting with "uni" were replaced with "ds"
basicly if you want ot run DS jobs from a C program you don't need the client install on that station just the 3 dll files and the lib file mentioned in the docs placed in the right place on that client.
you might find it better to compile yourself a dll that exposes routines/methods for running jobs, getting job status etc...
in case you want to run DS jobs from other applications i.e. VB or whatever you need to build a com dll providing the same functionality.
(don't forget to register your custom dll at the client or server machine depending on your application)
I built the com dll (just run and get status) for a client and it works fine
IHTH (I Hope This Helps)
be aware that (at least in version 6 and lower)
the dll files named in the docs starting with "uni" were replaced with "ds"
basicly if you want ot run DS jobs from a C program you don't need the client install on that station just the 3 dll files and the lib file mentioned in the docs placed in the right place on that client.
you might find it better to compile yourself a dll that exposes routines/methods for running jobs, getting job status etc...
in case you want to run DS jobs from other applications i.e. VB or whatever you need to build a com dll providing the same functionality.
(don't forget to register your custom dll at the client or server machine depending on your application)
I built the com dll (just run and get status) for a client and it works fine
IHTH (I Hope This Helps)
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Re: Triggering a Job Using C code
Yes, and it can be done rather easily(if you are familiar with C). We have created a C program to grab data from our database, populate parameters in a DS job, run the job and log performance, then check status and nofify the proper personnel if warnings or errors occurred. Most of the functionality you can get from the DS Server Job Developers Guide.