Run two commands in a single Execute Command stage + Params

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
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Run two commands in a single Execute Command stage + Params

Post by ady »

I am trying to run two commands as

chmod 774 #$ScriptPath#/#FileName#.KSH; #$ScriptPath#/#FileName#.KSH

My questions are

1) Can I run 2 commands in a single Execute Command stage?
2) How do I use parameters in Parallel Sequence?

As of now I am using 2 stages and "fullpath/filename" in the sequences. I just want them to be done in a single stage preferably using parameters because the path may change in future.

Please let me know if there is a way to do it, Thanks
Be nice to nerds. Chances are you’ll end up working for one.

--- Bill Gates
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

Within the sequencer job, you pretty much do the same thing.

What exactly is the problem you are facing here?
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

First The stage does not let me give parameters and even when I use the full path 2 command are not executed in asingle stage
Be nice to nerds. Chances are you’ll end up working for one.

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

Post by ray.wurlod »

Any job parameters must be in the parameters field.

Command: chmod

Parameters: 774 #$ScriptPath#/#FileName#.KSH; #$ScriptPath#/#FileName#.KSH
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