Page 1 of 1

How can i access different Project in same job

Posted: Thu Dec 30, 2004 6:14 am
by gauravb
when i try to get status of a job is same project i use this::

hjob10 = DSAttachJob("Report", DSJ.ERRWARN)
Status = DSGetJobInfo(hjob10, DSJ.JOBSTATUS)
If Status = DSJS.RUNFAILED Then
ErrCode = DSRunJob(hjob10, DSJ.RUNRESET)
ErrCode = DSWaitForJob(hjob10)
Call DSLogInfo("Job Reset: Report, "Job Control")

But can i access jobs from other projects ( env) as well.

like i have one dev and prod ... can i use a job in dev to get access for status of jobs in Prod .

Re: How can i access different Project in same job

Posted: Thu Dec 30, 2004 6:58 am
by ogmios
No you can't. All DataStage API's are meant to be used within 1 project.

Ogmios

Posted: Thu Dec 30, 2004 8:01 am
by kcbland
Use the dsjob command line program to build your job control. Simply use shell commands within your Batch job to execute the dsjob program to do what you need.