Hi,
I am tried running a job from designer and viewed in director without any errors and I got output also. Here I am using a job parameter which I had created a new one.
But when I am trying to run the same from command prompt I am getting the following error.
$ dsjob -run -mode NORMAL custdev gender_code_lookup -param '$sourcefilepath=/home/bhi/fix-csv/gender_code_lookup.csv'
Invalid arguments: dsjob -run
[-mode <NORMAL | RESET | VALIDATE>]
[-param <name>=<value>]
[-warn <n>]
[-rows <n>]
[-wait]
[-opmetadata <TRUE | FALSE>]
[-disableprjhandler]
[-disablejobhandler]
[-jobstatus]
[-userstatus]
[-local]
[-useid]
<project> <job|jobid>
Status code = -9999 DSJE_DSJOB_ERROR
I name d the parameter as "sourcefilepath" and prompt as "path". I tried all combinations with and without $ and both with path and sourcefilepath but unable to get the result.
Plz let me know whats the error is.
Thanks
Kavuri
command prompt error on dsjob -run
Moderators: chulett, rschirm, roy
Your command is :
$ dsjob -run -mode NORMAL custdev gender_code_lookup -param '$sourcefilepath=/home/bhi/fix-csv/gender_code_lookup.csv'
Change it like this as :
$ dsjob -run -mode NORMAL custdev gender_code_lookup -param sourcefilepath=/home/bhi/fix-csv/gender_code_lookup.csv
(removing $ sign and single quotes)
Try this and do let us know.
$ dsjob -run -mode NORMAL custdev gender_code_lookup -param '$sourcefilepath=/home/bhi/fix-csv/gender_code_lookup.csv'
Change it like this as :
$ dsjob -run -mode NORMAL custdev gender_code_lookup -param sourcefilepath=/home/bhi/fix-csv/gender_code_lookup.csv
(removing $ sign and single quotes)
Try this and do let us know.
Sufiyan