How to pass string parameters containing SPACES to a job.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
bsreenu
Participant
Posts: 22
Joined: Mon Aug 16, 2004 3:57 pm

How to pass string parameters containing SPACES to a job.

Post by bsreenu »

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.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

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
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
Post Reply