Setting Command Output to the job parameter
Moderators: chulett, rschirm, roy
Setting Command Output to the job parameter
I have a job design:
Execute Command Activity ----> Job Activity Stage.
In Execute Command activity stage i'm reading a sequential file which is having only one value using the "cat" command.
The output of the "cat" is passed to the parameter of the job which is called in next stage.
MaxVal(Prameter) ---> $CommandOutput.
But my job is getting aborted, when i'm setting the above value.
Can anyone tell me how to set the command output to the parameter?
Any help will greatly appreciated..
Execute Command Activity ----> Job Activity Stage.
In Execute Command activity stage i'm reading a sequential file which is having only one value using the "cat" command.
The output of the "cat" is passed to the parameter of the job which is called in next stage.
MaxVal(Prameter) ---> $CommandOutput.
But my job is getting aborted, when i'm setting the above value.
Can anyone tell me how to set the command output to the parameter?
Any help will greatly appreciated..
IBM Certified - Information Server 8.1
-
- Participant
- Posts: 53
- Joined: Fri Apr 18, 2008 8:13 am
- Location: United States
Setting Command Output to the job parameter
Hi,
U cannot directly use MAX() in $CommandOutput. If dis is wat u r doing, den its wrong. If gettin MAX value is wat ur requirement all about, den try fetchin it at ur UNIX lvl interface b4 performin it at DS lvl. Once u 've ur MAX value frm UNIX, den u can go ahead n use it in ur job usin a Command Activity stage n later use $CommandOutput to fetch its value.
Hope dis resolves ur prob requirement. Let me know if dis has helped u out r not.
U cannot directly use MAX() in $CommandOutput. If dis is wat u r doing, den its wrong. If gettin MAX value is wat ur requirement all about, den try fetchin it at ur UNIX lvl interface b4 performin it at DS lvl. Once u 've ur MAX value frm UNIX, den u can go ahead n use it in ur job usin a Command Activity stage n later use $CommandOutput to fetch its value.
Hope dis resolves ur prob requirement. Let me know if dis has helped u out r not.
Regards
Ajay
Ajay
Good Lord, is that a sample of your work site documention / composition skills? Please cease with the texty-chatty-dis-den-dat-ur-wat crap and use a professional level of English here. Use all of your fingers to type, not just your thumbs and spell out your dang words. Please. ![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
![Evil or Very Mad :evil:](./images/smilies/icon_evil.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 53
- Joined: Fri Apr 18, 2008 8:13 am
- Location: United States
Setting Command Output to the job parameter
Sorry guys....will definitely keep it in mind.....
Regards
Ajay
Ajay