Triggering a Job Using C code

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Vishvas
Participant
Posts: 34
Joined: Sat Jun 21, 2003 3:52 am

Triggering a Job Using C code

Post by Vishvas »

Hi,

Is there any way of triggering a job using C (without using dsjob)?

Arun
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes.

dsjob began life as an example of how to use the DataStage C API.

Check it out in Server Job Developer's Guide.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

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)
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
Image
zam62
Participant
Posts: 42
Joined: Tue Apr 29, 2003 12:21 pm

Re: Triggering a Job Using C code

Post by zam62 »

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.
Post Reply