Page 1 of 1

Passing a parameter from a unix command

Posted: Tue Mar 31, 2009 4:15 pm
by dsuser_cai
Hi

I would like to pass a parameter to my job from a unix command.

the unix command reads a file that has one value (1000) and shoudl pass that as a parameter to the job. in the job properties window im using the before job subroutine, i use the following command

cat path/file_name.txt #DsParameter#

on the parameters tab, i have this parameter (DsParameter).

but when i run this job the command reads the file and gets the value but its not passing it to the DS parameter. Can anybody help me.

Posted: Tue Mar 31, 2009 4:55 pm
by ray.wurlod
You can not change a job's parameter values once the job is running.

Therefore you will need to read the file before the job runs (for example from an Execute Command activity in a sequence) and use its output, trimmed of field marks, as the value with which to provide the parameter in a downstream Job activity.

Posted: Thu Apr 02, 2009 7:07 pm
by keshav0307
Yes a sequencer,
read the parameter from unix file before the job and loop the job.

Posted: Thu Apr 02, 2009 7:11 pm
by ray.wurlod
A sequence.

A sequencer only makes an "any" or "all" decision about whether its inputs have fired. It's a component in a sequence.