Invoking Dos Commands through Datastage

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
Lotus26
Premium Member
Premium Member
Posts: 48
Joined: Tue Jul 13, 2004 2:09 pm

Invoking Dos Commands through Datastage

Post by Lotus26 »

Hi

I am Using Server Edition and My DataStage is Installed on Unix Box . But I want to execute some DOS Commands like from Datastage.
Is it Possible to do so like invoking the DOS Commands through DataStage ??

I would appreciate any help on this . Thanks.
Regards
Lotus26
michaeld
Premium Member
Premium Member
Posts: 88
Joined: Tue Apr 04, 2006 8:42 am
Location: Toronto, Canada

Post by michaeld »

In a sequence job there is a command activity stage. You can run commands through it the same as you would from a shell.
Mike
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

There are many ways , to start with there is a command stage..you can use that,..
Lotus26
Premium Member
Premium Member
Posts: 48
Joined: Tue Jul 13, 2004 2:09 pm

Re: Invoking Dos Commands through Datastage

Post by Lotus26 »

But My Files are on Windows Box. I wonder is this possible still like use the execcommand stage in Sequencer??

Thanks.
Regards
Lotus26
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Maybe remote shell :?: Or install samba, this way windoze will become transparent and you can see/execute files on windoze.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Lotus26
Premium Member
Premium Member
Posts: 48
Joined: Tue Jul 13, 2004 2:09 pm

Invoking Dos Commands

Post by Lotus26 »

DSguru2B wrote:Maybe remote shell :?: Or install samba, this way windoze will become transparent and you can see/execute files on windoze.

So through Datastage can I invoke Samba or remoteshell and that way I can execute the DOS Commands on the files which are on Windows box??

Thanks.
Regards
Lotus26
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yes. Search for "remote shell", it has been covered before.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

The only way to run a DOS command is to clarify which PC you wish to use. Then, use remsh or ssh to run a remote command on a Windoze machine. This Unix program can be executed using a Command stage in a Sequence, which simply calls the DSExecute API. You can do the same within a Batch job or thru a custom function/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
Post Reply