-file option in the dsjob

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
kishorchitra
Participant
Posts: 6
Joined: Mon Oct 04, 2004 9:40 am

-file option in the dsjob

Post by kishorchitra »

Hi,

I am trying to run the dsjob command through unix script, as I don't wanna hard code userid and password, I want to use the -file parameter and the file contains the userid and passwaord details. somehow I am not able to get it to work. Any help?

My dsjob command looks like below.

$SCRIPTPATH/dsjob -file ds_login.env -run -wait -param source=$source $project_name $jobname.

and my ds_login_env looks like below:

server_name,userid,password


What am I doing wrong above?

I appreciate your help in advance.

Thanks,
Kishor
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use the full pathname to the file.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's true... had to go check my scripts to verify that. Keep in mind the fact that you can have one "central" location for information like this. The file can contain multiple lines if you have multiple servers.
-craig

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