call routine from unix

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
pkomalla
Premium Member
Premium Member
Posts: 44
Joined: Tue Mar 21, 2006 6:18 pm

call routine from unix

Post by pkomalla »

Hi all,

Anyone can tell me, how to run a datastage routine from unix shell script

Thanks
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Use a job to run the routine.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Why do you want to invoke a routine from a shell? Is there any particular reason why:?:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It is not possible to run a routine from a shell script because there exists no argument passing mechanism.

When you test a routine in the routine editor, it actually builds a "test bed" (a main program) that is used for passing the arguments from the test grid. This test bed program is discarded when you close the Test window.

To emulate this you would need to create a similar DataStage BASIC program and to compile it. There is no mechanism in the client tools for creating PROGRAM modules in DataStage BASIC, though it can be done on the server. Full information is given in the DataStage BASIC manual, but you're stepping outside the bounds of the product.

In the next version this approach (of building PROGRAM modules on the server) is unlikely to be supported by the service-oriented architecture.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply