Return Value (Execute command)

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
das_nirmalya
Participant
Posts: 59
Joined: Thu Mar 20, 2008 12:11 am

Return Value (Execute command)

Post by das_nirmalya »

I want to create a seq such that

Executecommand---------> Job

Execute command execute a shell script and Job use the return 2 values of shell script as input,,

how can i configure the execute command stage ?
nsd
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

Hope the following will help

Expression_type
Custom - [conditional]
expression:
Execute_Command_0.$ReturnValue=2
Birendra
das_nirmalya
Participant
Posts: 59
Joined: Thu Mar 20, 2008 12:11 am

Post by das_nirmalya »

bkumar103 wrote:Hope the following will help

Expression_type
Custom - [conditional]
expression:
Execute_Command_0.$ReturnValue=2
no this is not working for Unix shell script,,,
nsd
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Two values, not the value 2. Either return a delimited string and parse it or leverage the fact that the output will be in the form of a dynamic array and select each element individually.

Code: Select all

Execute_Command_Stage.$ReturnValue<1>
Execute_Command_Stage.$ReturnValue<2>
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply