How can i access different Project in same job

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
gauravb
Participant
Posts: 14
Joined: Tue Nov 30, 2004 7:25 am
Location: India
Contact:

How can i access different Project in same job

Post 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 .
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: How can i access different Project in same job

Post by ogmios »

No you can't. All DataStage API's are meant to be used within 1 project.

Ogmios
In theory there's no difference between theory and practice. In practice there is.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post 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.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply