BAT executing

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
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

BAT executing

Post by snassimr »

I want to execute BAT file within DS .I s there is any BASIC COmand for this ?
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

All the DX servers i have worked are in UNIX(where BAT would not work). I am surprised to see a windows server.

Regards
Sreeni
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

Its really help


I STILL NEED HELP
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

.bat files can be executed using ExecSH or ExecDOS or command stage.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, use ExecDOS in the before or after job areas, or use DSExecute within a routine called from a Command Execution stage in a Sequencer job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Source code for the before/after subroutine ExecDOS is supplied; you can inspect it and use it as a basis to create your own.

When you call the DSExecute() function the first, shell, argument, must be "DOS" on a Windows platform in order to execute a DOS-level command or BAT file.
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