Page 1 of 1

Run DataStage job thru UNIX Script

Posted: Mon Mar 30, 2009 4:47 am
by srai
Hi All,

I am working on DataStage 8.0 Server job.

I am trying to run my DS job using UNIX script.

the command which I am using to run the job is -

dsjob -server dsserver -user dsusername -password dspassword ProjectName JobName.
Script si sthrwing error as "syntax error".

When I run the script simply without user name password credential just as
ProjectName JobName
It is running fine. My script is residing on DataStage server where the DS project is.

Please suggest me on that.
I need to pass the user name and password credential to run the job.

Thanks
Santosh

Re: Run DataStage job thru UNIX Script

Posted: Mon Mar 30, 2009 5:02 am
by Pagadrai
Hi Santosh,
I think u should use the logon clause along with the dsjob command.

"DataStage CLI connects to the DataStage server engine
on the local system using the user name and password of the user
invoking the command. You can specify a different server, user name,
or password using the logon clause, which is equivalent to the API
DSSetServerParams function"

Refer to manuals for more details.

Let me know if this helps.

Re: Run DataStage job thru UNIX Script

Posted: Mon Mar 30, 2009 7:31 am
by srai
Pagadrai wrote:Hi Santosh,
I think u should use the logon clause along with the dsjob command.

"DataStage CLI connects to the DataStage server engine
on the local system using the user name and password of the user
invoking the command. You can specify a different server, user name,
or password using the logon clause, which is equivalent to the API
DSSetServerParams function"

Refer to manuals for more details.

Let me know if this helps.
Hi could you please send me the command ?

Posted: Mon Mar 30, 2009 7:55 am
by DSguru2B
I do not see the -run in your command.