Page 1 of 1

scheduling the job using UNIX script

Posted: Tue May 10, 2011 9:37 am
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.

Posted: Tue May 10, 2011 12:32 pm
by vinothkumar
Are both versions installed in same Unix server ? ?

Posted: Tue May 10, 2011 4:23 pm
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.

Posted: Thu May 12, 2011 12:22 am
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

Posted: Thu May 12, 2011 2:26 am
by synsog
Try this..

dsjob -server <servername> -domain NONE -user xxx -password xxxx -run -jobstatus <projectname> <sequencename>

Posted: Thu May 12, 2011 2:57 am
by sanoojk
Now getting the error:

ERROR: Failed to open project

Status code = -1003

Posted: Thu May 12, 2011 6:45 am
by chulett
I would think you need to use the proper domain in the command line rather than 'none'.

Posted: Thu May 12, 2011 7:42 am
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

Posted: Thu May 12, 2011 8:05 am
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?

Posted: Thu May 12, 2011 8:59 am
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?

Posted: Thu May 12, 2011 9:14 am
by synsog
before running the dsjob command dsenv should be sourced..

. ./dsenv

execute the above command and try dsjob command again..