Hi,
I am have some proble while passing parameter from one job to another
using the following manner
UtilityRunJob('testJob', 'Par1=' : DSLink4.o_p_uid :'|' : 'DataSource=' : DSGetParamInfo(DSJ.ME,DataSource,DSJ.PARAMTYPE.STRING))
I am calling testJob from job ABCD par1 is taking from a file and the DataSource is a prameter from the job ABCD which i have to pass to test job
While runnig i am getting the error as follows in director
ABCD..Transformer_3 (UtilityRunJob): Setting Job Param - DataSource Setting to -3 and then the job got aborted
Please help me out in this .
Problem while passing parameter from one job to another
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Have you tried to put an actual value instead of the parameter ?
e.g.
UtilityRunJob('testJob', 'Par1=' : DSLink4.o_p_uid :'|' : 'DataSource=' : '<hard coded value')
Try this and see if you still get the same error. If you are, then it is possibly a problem with your routine
e.g.
UtilityRunJob('testJob', 'Par1=' : DSLink4.o_p_uid :'|' : 'DataSource=' : '<hard coded value')
Try this and see if you still get the same error. If you are, then it is possibly a problem with your routine
Colin Larcombe
-------------------
Certified IBM Infosphere Datastage Developer
-------------------
Certified IBM Infosphere Datastage Developer
You don't need to pull the value like that. Not for this situation.
Just use it:
![Confused :?](./images/smilies/icon_confused.gif)
Just use it:
Code: Select all
UtilityRunJob('testJob', 'Par1=' : DSLink4.o_p_uid :'|' : 'DataSource=' : #DataSource#))
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code -3 (DSJE.BADPARAM) means "bad parameter name" - that is, the parameter NAME that you are giving is not the name of a parameter in that job. Check both spelling and casing.
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.