Calling Datastage Basic Routine Through Command Line

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 Through Command Line

Post by dstest »

I would like to know is there any way we can call datastage basic routine through DataStage Command Language.

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

Post by chulett »

Which? 'Command Line' impying from the O/S or 'DataStage Command Language'? If the latter, you'd need to explain what you mean by that - the TCL prompt? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Post by dstest »

Using Datastage Command Language;

In unix when i execute dssh i am getting like below.

DataStage Command Language 7.5
Copyright (c) 1997 - 2004 Ascential Software Corporation. All Rights Reserved
DSEngine logged on: Sun Oct 5 15:56:53 2008

>

Here Can i call routine and get the output from routine.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No.

In the same way and for the same reason that you can't invoke a C function from the command line. There is no argument-passing mechanism from the command line.

Nor can you call DS routines from the TCL prompt. Your assertion that you can is wrong. If you disagree with that please provide an example.

You can only call "main" programs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DS_SUPPORT
Premium Member
Premium Member
Posts: 232
Joined: Fri Aug 04, 2006 1:20 am
Location: Bangalore

Post by DS_SUPPORT »

You can create a dummy job and call the required routine, where you can pass the arguments as job parameters, and execute the job in command line. And set the output of the routine to UserStaus.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

That hardly meets the requirement to "call routine through command line" though, does it?

You could write a main program too, if you knew how.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dstest
Participant
Posts: 66
Joined: Sun Aug 19, 2007 10:52 pm

Post by dstest »

Thanks for your replies and suggestions.
DS_SUPPORT
Premium Member
Premium Member
Posts: 232
Joined: Fri Aug 04, 2006 1:20 am
Location: Bangalore

Post by DS_SUPPORT »

Ray,

Can you Share some examples related to writing "main" program?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No, because it's not officially supported by DataStage. Even I don't use them (though I do know how, from my UniVerse expertise). If you must everything you need to know is in the DataStage BASIC manual, but you won't get any official support.
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