Error with DSJOB command

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
swathi Singamareddygari
Participant
Posts: 48
Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore

Error with DSJOB command

Post by swathi Singamareddygari »

Hi,

I am trying to run the job using dsjob command and passing parameter
for a job form command line

i gave this command

./dsjob -run -param ACT_L00_TRG=/home/singamar/pivot.txt project name jobname

and i am getting this error

Error -3 getting information for parameter 'ACT_L00_TRG'

Status code = -3 DSJE_BADPARAM

can any help me

Thanks
Swathi
Thanks&Regards
S.Swathi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That simply means you don't have a parameter named "ACT_L00_TRG" in that job. Check the spelling, including the case.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no job parameter named ACT_L00_TRG in the job called 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.
swathi Singamareddygari
Participant
Posts: 48
Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore

Post by swathi Singamareddygari »

ray.wurlod wrote:There is no job parameter named ACT_L00_TRG in the job called jobname. ...

i am using that parameter in the job

do i need to specifiy $ before the paramater name
i.e
./dsjob -run -param $ACT_L00_TRG=/home/singamar/pivot.txt DMSYNC pivot1

and do i need to specify default value for that parameter in the job
Thanks&Regards
S.Swathi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No $ sign should be used. Are those "0" or "O" in your parameter name?
swathi Singamareddygari
Participant
Posts: 48
Joined: Fri Feb 29, 2008 1:09 am
Location: Bangalore

Post by swathi Singamareddygari »

ArndW wrote:No $ sign should be used. Are those "0" or "O" in your parameter name? ...

No its "0" in the parameter name.
when i used $ symbol before the parameter name i am getting
This error

Error -3 getting information for parameter ''

Status code = -3 DSJE_BADPARAM

which is different from eralier error

Error -3 getting information for parameter 'ACT_L00_TRG'

Status code = -3 DSJE_BADPARAM
Thanks&Regards
S.Swathi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you go to your director, double click on the job name and then paste the output to this thread we might see something, that will contain the parameters used by the job.
OddJob
Participant
Posts: 163
Joined: Tue Feb 28, 2006 5:00 am
Location: Sheffield, UK

Post by OddJob »

swathi Singamareddygari wrote:
when i used $ symbol before the parameter name i am getting
This error

Error -3 getting information for parameter ''

Status code = -3 DSJE_BADPARAM

which is different from eralier error
The error is different because the shell is expanding $ACT_L00_TRG as if it were a variable, and it presumably isn't set to anything hence ''.

If you want to pass environment variables you'll need to delimit the param with single quotes e.g.
-param '$APT_STRING_PADCHAR'='0x20'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

swathi Singamareddygari wrote:
ray.wurlod wrote:There is no job parameter named ACT_L00_TRG in the job called jobname. ...
i am using that parameter in the job
No, you're not or it would be working. And no, you don't need a dollar sign, just the right parameter name.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply