Running Pre/Post Stage Commands

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
gsherry1
Charter Member
Charter Member
Posts: 173
Joined: Fri Jun 17, 2005 8:31 am
Location: Canada

Running Pre/Post Stage Commands

Post by gsherry1 »

Is it possible to run pre or post stage commands in EE like you could in Server edition? Only stage that I am able to get this functionality to work is with the Basic Transformer.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Since the Pre/Post commands are Uv/BASIC calls you will only be able to do this from the BASIC transformer (as you've discovered) as well as at the Pre/Post JOB level. Wouldn't it be nice to get the best of both worlds - the ease of Uv/Basic coding plus the speed of PX.
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

You can specify a command to run before or after the job. It is not as granular as doing it before/after a given stage but it does provide some flexibility.

In the Job Properties, General Tab: Before-job subroutine and After-job subroutine. This is available for both Server and PX jobs.

The command run a DOS command, Unix Korn Shell, run a BASIC routine, etc. There are other built-in routines as well. Check out the help and documentation.
Post Reply