Hi,
I am new to DataStage, and I have a question regarding to DataStage scheduling. Currently, I am participating a project which tries to convert hard-coded ETL to Datastage, but I've had this big issue about the scheduling. In our old system, the scheduler has lots of flexibility. Every time, it starts, the scheduler checks the table in source database to decide which data (all the data are date related ) is available to be processed. Then it inserts those dates into a table called job_process_date_list. In the second step, it fetched the rows from job_process_date_list, then for each date, it executes a bunch of stored procedure with the date as parameter. (The stored procedures name is stored in a table. ) until all the dates in job_process_date_list are processed. I am wondering how to implement such mechanism in DataStage.
Thanks,
Yiming
Data Stage Scheduling Issue
Moderators: chulett, rschirm, roy
Yiming
I would start with a job to copy the dates to process to a hash file or a sequential file. You need to create a batch job to read these dates and pass them as parameters to a job sequence which passes them to each job that need to run.
Example:
Job1:
select start_date from whatever -> transform -> hash1
Job2:
open "hash1" to hash1 else stop
read StartRec from hash1, "StartDate" then
... start SeqJob1 ...
end
SeqJob1:
... start all jobs passing parameter "StartDate"
Kim.
Kim.
I would start with a job to copy the dates to process to a hash file or a sequential file. You need to create a batch job to read these dates and pass them as parameters to a job sequence which passes them to each job that need to run.
Example:
Job1:
select start_date from whatever -> transform -> hash1
Job2:
open "hash1" to hash1 else stop
read StartRec from hash1, "StartDate" then
... start SeqJob1 ...
end
SeqJob1:
... start all jobs passing parameter "StartDate"
Kim.
Kim.
Mamu Kim
Your answer is a simple one:
You will have to build EVERYTHING. There is no inherent capability in this tool or any other tool to do what you want. This is why there are expensive consultants who specialize in this very thing. (Check out the inner circle names on this forum).
For my opinion (everyone groan)
1. Read Kimball, Inmon, TDWI etc for methodologies regarding persistent staging databases. Yours is a typical data warehousing requirement that has been covered in sooooo many books, articals, and classes.
2. Build an audit repository of process metadata that tracks all batch executions, statuses, processing dates, etc. Use this to seed each run that requires knowledge of last successful run and the dates involved.
3. Build a persistent staging database, tied to an intelligent archiving strategy to induct, cleanse, transform, and load.
4. Get an Inner Circle consultant onsite to make the magic happen. (Shameless plug)
You will have to build EVERYTHING. There is no inherent capability in this tool or any other tool to do what you want. This is why there are expensive consultants who specialize in this very thing. (Check out the inner circle names on this forum).
For my opinion (everyone groan)
1. Read Kimball, Inmon, TDWI etc for methodologies regarding persistent staging databases. Yours is a typical data warehousing requirement that has been covered in sooooo many books, articals, and classes.
2. Build an audit repository of process metadata that tracks all batch executions, statuses, processing dates, etc. Use this to seed each run that requires knowledge of last successful run and the dates involved.
3. Build a persistent staging database, tied to an intelligent archiving strategy to induct, cleanse, transform, and load.
4. Get an Inner Circle consultant onsite to make the magic happen. (Shameless plug)
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
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
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Not as much as bringing me in from Australia!
However, this is a job that could be done "by remote control". If you were to create a specification of exactly what your control requirements were, a competent consultant could craft the code and ship it back to you, where you could inspect it, learn techniques from it, and modify it at your leisure.
However, this is a job that could be done "by remote control". If you were to create a specification of exactly what your control requirements were, a competent consultant could craft the code and ship it back to you, where you could inspect it, learn techniques from it, and modify it at your leisure.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.