Run DataStage job thru UNIX Script

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Run DataStage job thru UNIX Script

Post 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
Pagadrai
Participant
Posts: 111
Joined: Fri Dec 31, 2004 1:16 am
Location: Chennai

Re: Run DataStage job thru UNIX Script

Post 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.
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Re: Run DataStage job thru UNIX Script

Post 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 ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I do not see the -run in your command.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply