Calling Datastage Basic Routine in UNIX script

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
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Calling Datastage Basic Routine in UNIX script

Post by dstest »

Hi,

Is there any way we can execute Basic routine in unix script.

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

Post by ray.wurlod »

No. Like with other languages, routines lack a "main" module and therefore there is no command line interface, either from TCL or from the operating system.

You could construct a "main", or test bed, module, the same as the Test facility does on the fly, but there is no DataStage documentation on how this would be accomplished.
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'm curious why you are asking... what are you trying to accomplish?
-craig

"You can never have too many knives" -- Logan Nine Fingers
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Generaly there is nothing in the world of IT what can not be done, if it is performing good or does make sense could be written on an other sheet of paper.

You can write a job with designer or a batch in Manager, who is calling your routine and is feeded by a parameter.

You than can write it into the log.

You can start this job then from the unix command line, wait til he is finish and then read the joblog with another command line command.

If you like it, do it.
Wolfgang Hürter
Amsterdam
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Ray is saying it can be done but it is not documented. Therefore probably not something IBM thinks you might need to do. I think Craig's question is still valid. Why?
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As do I. :wink:

Usually it's best to ask a more general 'how do I' question rather than focus on your perceived solution without giving us any clue about the problem you are trying to solve. We can usually get you on the right / much more better road to take you to your goal once we know what that is.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

I have never encountered such a 'requirement' before.
Was that an 'interview question' by any chance?

Otherwise I'll second WomaWil's approach.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

chulett wrote:We can usually get you on the right / much more better road to take you to your goal once we know what that is.
This may involve the MMB stage (an invention of Craig's). :wink:
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 »

Maybe we can get it added to Quality Stage. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply