scheduling the job using UNIX script

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
sanoojk
Participant
Posts: 36
Joined: Wed Dec 19, 2007 3:54 am

scheduling the job using UNIX script

Post by sanoojk »

Hi,

The Ds version is getting upgraded from 7.5 to 8.5 in test environment. There are sequence jobs in 7.5 which are executed using UNIX script. Now I have the same sequence in 7.5 and 8.5 . Please tell me sequence from which environment (7.5 or 8.5) will be executed if I execute the job using the UNIX script. Since I don't have access to UNIX I can't try this from my side. Also I can schedule the jobs in both 7.5 and 8.5 using director.
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Post by vinothkumar »

Are both versions installed in same Unix server ? ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If you're using the dsjob command, then the project name is specified on the command line. If you are using the same project names in both versions, then specify the full pathname of the dsjob command (that is, from the correct engine) and make sure that the correct dsenv script has been executed and all appropriate environment variables are also correctly set.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sanoojk
Participant
Posts: 36
Joined: Wed Dec 19, 2007 3:54 am

Post by sanoojk »

Both 7.5 and 8.5 are installed on the same server.

I used the below command to execute in 8.5 version:

/apps/dtstgdev/IbmIIS85/Server/DSEngine/bin/dsjob -server <servername> -user xxx -password xxxx -run -jobstatus <projectname> <sequencename>

I am getting the following eror:
Status code = -1010 DSJE_DOMAINLOGTOFAILED
synsog
Premium Member
Premium Member
Posts: 232
Joined: Sun Aug 01, 2010 11:01 pm
Location: Pune

Post by synsog »

Try this..

dsjob -server <servername> -domain NONE -user xxx -password xxxx -run -jobstatus <projectname> <sequencename>
sanoojk
Participant
Posts: 36
Joined: Wed Dec 19, 2007 3:54 am

Post by sanoojk »

Now getting the error:

ERROR: Failed to open project

Status code = -1003
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I would think you need to use the proper domain in the command line rather than 'none'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sanoojk
Participant
Posts: 36
Joined: Wed Dec 19, 2007 3:54 am

Post by sanoojk »

I tried by using the correct domain as well instead of 'none'

The domain name I entered is the 'host name of the services tier' that I enter while logging in to DS8.5 designer (first box in the loggin window)

But still getting the error
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Is your environment setup correctly? Meaning, did you make sure the dsenv from the 8.5 installation was sourced as part of this script?
-craig

"You can never have too many knives" -- Logan Nine Fingers
sanoojk
Participant
Posts: 36
Joined: Wed Dec 19, 2007 3:54 am

Post by sanoojk »

I provided the dsjob path corresponding to 8.5 environment in the command:

/apps/dtstgdev/IbmIIS85/Server/DSEngine/bin/dsjob

please tell me where I have to specify the dsenv file path in this command?
synsog
Premium Member
Premium Member
Posts: 232
Joined: Sun Aug 01, 2010 11:01 pm
Location: Pune

Post by synsog »

before running the dsjob command dsenv should be sourced..

. ./dsenv

execute the above command and try dsjob command again..
Post Reply