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.
Passing a parameter from a unix command
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 151
- Joined: Fri Feb 13, 2009 4:19 pm
Passing a parameter from a unix command
Thanks
Karthick
Karthick
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 783
- Joined: Mon Jan 16, 2006 10:17 pm
- Location: Sydney, Australia
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: