dsjob command

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

dsjob command

Post by Maximus_Jack »

Hi
when i execute the dsjob commands (after running the dsenv file ) inside a shell script its working fine, but when i run the dsjob commands in the command prompt (even after running the dsenv file) its not working even from bin directory? anything wrong with my environment varaiables??

should i have to set the DSHOME path in the .local_profile file

what should i do to run the dsjob commands from the command prompt
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

what error it throws if u run via command prompt?
pandeeswaran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

U won't be running it at all. Maximus_Jack will be.

The second person personal pronoun in English is spelled "you".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The answer is probably "provide correct syntax for dsjob command". Since we don't know the exact syntax you used, it's difficult to comment.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Step 1: source the dsenv file "dot space dot slash dsenv"

Code: Select all

. ./dsenv
You can do the above from the command line or in your home directory's .profile file, if you give the full path to dsenv following the first "dot space."
Choose a job you love, and you will never have to work a day in your life. - Confucius
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, we'd need to know what in the heck "not working" means before anyone could help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

Hi
I finally able to run it, previously i was running the dsenv as just "dsenv"
without the "." in front of it, i'm not a expert in unix can you please tell me what is the difference in running the script with

"sh dsenv" and " .<space> dsenv" and "dsenv" ( without anything in front of it)

cheers
max
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Read about the concept of "sourcing" in unix.
No need of being an expert for knowing this: :D
pandeeswaran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... have you solved whatever dsjob command issue you were having?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Maximus_Jack
Premium Member
Premium Member
Posts: 139
Joined: Fri Apr 11, 2008 1:02 pm

Post by Maximus_Jack »

yes, its resolved
Post Reply