How to call unix shell script from the sequences

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
chandankambli
Participant
Posts: 14
Joined: Sun Jun 11, 2006 2:16 pm

How to call unix shell script from the sequences

Post by chandankambli »

Pls. help me.

How to call unix shell script from the sequences?
Thanks experts.
datastage_learner
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Look into Execute Command Stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chandankambli
Participant
Posts: 14
Joined: Sun Jun 11, 2006 2:16 pm

Post by chandankambli »

DSguru2B wrote:Look into Execute Command Stage. ...
you meant ExecCommand with command and parameters.

how to get/store the return value of that command after the execution, will you pls. tell me?
Thanks experts.
datastage_learner
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

You can get the return value by using .$ReturnValue in the expression of the Execute command Avtivity.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Have a link coming out of it to a job or wherever you want to store it. Use Activity variable options ($CommandOutput,$ReturnValue) will get you what you want.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply