The parameters will be passed to dsjob from shell script which is turn will execute the datastage job. Example:
dsjob -run -param value1="Test String one"
We get an invalid syntax error. So how do I pass strings containing spaces and special characters as run time parameters.
How to pass string parameters containing SPACES to a job.
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You need to tell it which project it's running in and which job to run.
Code: Select all
dsjob -run -param value1="Test String one" projectname jobname
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.
Try using "eval dsjob ...". We found that the quotes weren't being honored. Check out this script which shows a method for launching and monitoring a controlling job:
viewtopic.php?t=85578
viewtopic.php?t=85578
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle