On request jobs

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
lebos
Participant
Posts: 74
Joined: Mon Jan 20, 2003 10:02 am
Location: USA

On request jobs

Post by lebos »

Does anybody have a "good" way to enable users to schedule or initiate a DataStage job? Ideally, this would work with no intervention on the part of developers, operators, or any other IT staff people.

The only ways I can think of would be by using a DB table which a user could update and then having a job which would periodically wake up and query this table to see if any user requests exist, or to periodically run a job which would look for a trigger file of some kind which the user would create.

Are there better ways? (Environment is Unix, DataStage 7.1)

Larry
ketfos
Participant
Posts: 562
Joined: Mon May 03, 2004 8:58 pm
Location: san francisco
Contact:

Post by ketfos »

Hi,
Make user of unix cron job and write a shell script which can check for user file before running ds job

Or
Make use of ds Scheduler.

Ketfos
lebos
Participant
Posts: 74
Joined: Mon Jan 20, 2003 10:02 am
Location: USA

Post by lebos »

Thanks for your response Ketfos. We are using the scheduler in DataStage, but that does not give the non-IT person any facility, it only allows an IT person to schedule a job. Unless, that is we installed the Director on the user's pc, which does not seem like a good option.

A script which would look for a trigger file is an option. I am just looking for more "elegant" solutions. You know, like somehow the user could say "ala ca dabra" three times and then job x would run!

How are others handling this?

Larry
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Simple - we don't have any "user scheduled" jobs. :wink: Actually, I've never had a need to do this, so I would be curious what kind of jobs these people would be scheduling.

Now, we do have "loosely scheduled" jobs that are waiting for files from various people... but they run over a specific window and poll for the arrival of a file. For example, I've got one that runs on every other Wednesday and waits for a payroll file. Are you doing something like that?
-craig

"You can never have too many knives" -- Logan Nine Fingers
lebos
Participant
Posts: 74
Joined: Mon Jan 20, 2003 10:02 am
Location: USA

Post by lebos »

What kinds of jobs indeed!

These are not data warehouse type jobs. They are more like normal data processing jobs. Things like General Ledger are we in balance yet jobs where the user runs a special job to see if various accounts balance and if not, makes some changes and then runs the thing again before closing the books for that accounting period.

I know, this type of thing should be done within the application, but my client has opted to use DataStage for quite a bit of this. Actually, many of these jobs are running under an out dated windows batch system and DataStage is being used to replace it.

I do have a DS job which looks for a file, sleeps if it's not there, etc. until the file either shows up or a certain amount of time goes by. The only problem is that we don't have a good way for a user to create a file in Unix. Plus, I can see this getting out of hand and becoming an administration nightmare.

Any more thoughts?

Larry
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So, in other words you are emulating a BI tool with DataStage? :D Yerk.

Do your users have a methodology whereby they could insert records into a database table? I'd probably create a set of jobs that periodically polled that table for unprocessed records that indicate specific requests and then run the associated job(s). Some sort of scheduler could run it every X minutes during certain hours, or you could launch it once at the beginning of the day and have it poll internally until it becomes time to shut down for the night.

Something like that, anyway. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
KeithM
Participant
Posts: 61
Joined: Thu Apr 22, 2004 11:34 am
Contact:

Post by KeithM »

This sounds like an application where you could use Ascential RTI. You would get the benifit of using the business logic contained in your datastage jobs without being tied to a batch schedule. This of course assumes that you have an unlimited budget.
Keith
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Keith is probably right but you can run dsjob anytime you want. You could execute it from the other application or write a simple VB front end or a batch file. Do a search there are some cool batch files and shell scripts posted to do a lot of the work for you.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Using the optional real time interface (RTI) component you can set the job up as a Web service and have anyone execute it at any time. :)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I think that was already mentioned... along with the 'unlimited budget' comment. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
lebos
Participant
Posts: 74
Joined: Mon Jan 20, 2003 10:02 am
Location: USA

Post by lebos »

Knowing that Ascential's pricing makes it difficult, what is a ballpark cost of RTI?

Larry
Post Reply