In which directory we run dsjob command?

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
palak08
Participant
Posts: 75
Joined: Thu Nov 04, 2010 5:54 pm

In which directory we run dsjob command?

Post by palak08 »

I want to run one sequence job through dsjob command. I want to put that syntax in another job's after job subroutine.
Now my question is in which directory I run dsjob command?

I apologize for this stupid question. I have done this earlier but it just slipped from mind.

Any help will be much appreciated.
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

/ibmdscode/Ascential/DataStage/DSEngine/bin
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Use this command to find the path of dsjob

Code: Select all

find / -name 'dsjob' -print 2>/dev/null
You are the creator of your destiny - Swami Vivekananda
palak08
Participant
Posts: 75
Joined: Thu Nov 04, 2010 5:54 pm

Post by palak08 »

I am using version 8.1. Is this the same ?
/IBM/InformationServer/Server/DSEngine/bin
vinothkumar wrote:/ibmdscode/Ascential/DataStage/DSEngine/bin
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

palak08 wrote:I am using version 8.1. Is this the same ?
/IBM/InformationServer/Server/DSEngine/bin
vinothkumar wrote:/ibmdscode/Ascential/DataStage/DSEngine/bin
Yes
You are the creator of your destiny - Swami Vivekananda
palak08
Participant
Posts: 75
Joined: Thu Nov 04, 2010 5:54 pm

Post by palak08 »

Thanks for your reply.

I did this and found following directory:
/IBM/InformationServer/Server/DSEngine/bin/dsjob

But when I ran dsjob command it says:
-bash: dsjob: command not found

I ran following command:
dsjob -run <projectname> <job name>

Any suggestion?
anbu wrote:Use this command to find the path of dsjob

Code: Select all

find / -name 'dsjob' -print 2>/dev/null
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Attach full path to the command

Code: Select all

/IBM/InformationServer/Server/DSEngine/bin/dsjob  -run <projectname> <job name> 
You are the creator of your destiny - Swami Vivekananda
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or if you cd'd to the bin directory then you could use "dot slash":

Code: Select all

./dsjob -run <projectname> <job name> 
Or you could update your $PATH to include that bin directory and then it wouldn't matter where you were when you launched the command.
Last edited by chulett on Thu Nov 18, 2010 2:00 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
palak08
Participant
Posts: 75
Joined: Thu Nov 04, 2010 5:54 pm

Post by palak08 »

I logged in Unix and then changed directory to /IBM/InformationServer/Server/DSEngine/bin/ and then ran dsjob but it is giving me same error.
are there any settings need to be done to run dsjob?
anbu wrote:Attach full path to the command

Code: Select all

/IBM/InformationServer/Server/DSEngine/bin/dsjob  -run <projectname> <job name> 
palak08
Participant
Posts: 75
Joined: Thu Nov 04, 2010 5:54 pm

Post by palak08 »

It didn't work.
I got follwoing error:
./dsjob: error while loading shared libraries: libvmdsapi.so: cannot open shared object file: No such file or directory
chulett wrote:Or if you cd'd to the bin directory then you could use "dot slash":

Code: Select all

./dsjob -run <projectname> <job name> 
Or you could update your $PATH to include that bin directory and ...
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Run this script before running dsjob

Code: Select all

. /IBM/InformationServer/Server/DSEngine/dsenv
You are the creator of your destiny - Swami Vivekananda
palak08
Participant
Posts: 75
Joined: Thu Nov 04, 2010 5:54 pm

Post by palak08 »

I tried running
. /IBM/InformationServer/Server/DSEngine/dsenv

It says permission denied.
Is this something which is causing error while running dsjob.
anbu wrote:Run this script before running dsjob

Code: Select all

. /IBM/InformationServer/Server/DSEngine/dsenv
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

palak08 wrote:I tried running
. /IBM/InformationServer/Server/DSEngine/dsenv

It says permission denied.
Is this something which is causing error while running dsjob.
anbu wrote:Run this script before running dsjob

Code: Select all

. /IBM/InformationServer/Server/DSEngine/dsenv
Yes. Get the execute permission to dsenv file
You are the creator of your destiny - Swami Vivekananda
Abhi700
Participant
Posts: 20
Joined: Thu Nov 25, 2010 3:52 am
Location: Pune

Post by Abhi700 »

Give the Permission for the file
./dsjob -run <projectname> <job name>
Post Reply