Analyze IBM DataStage Job Build Process __IBM

Source: Internet
Author: User

In the IBM DataStage job we know there are three types, and here's a simple description

1.server job, running on the server side, a job that is simple for logical control can be implemented using this method

2.parallel job, run in parallel, for most job develop this method is used to implement

3.sequence job, mainly for process control.


A simple example shows:

There is now a parallel job which named Edw_dss_dm_dang. This job may not be very complex, it is used for data loading or backup we call it (ETL process).

Now it's time to add this job to a unit sequence and say that this sequence is specifically for dang job operations. We call this sequence as Dang_sequence.before we added this dang job into dang sequence need to decide when the job should Being run, so here we add a parameter run_time to decide which dang job can run named Dang_can_ run_time which to Boolean type. When the parameter is Y then dang_job can run,but the parameter was set to default value n.so when we run Dang_sequence, Ha ve to Manutal.

But,as all we know, there are a totally sequence, which we called totally_sequence, so the parameter in this job are good, Its mean every time we run the job, each job in it

Can run unless we something. So there a parameter should is called Dang_can_ Run_time,and the parameter default valued The not is set to N OR Y but default. Because we should sett it use program. So we would use server job.

There is a SQL that can well illustrate this point:

I can handle it on Monday.

Select ' Dang_can_ run_time ' as PK, case after DayOfWeek (current DATE) in (2) Then ' Y '
Else ' N ' end as Run_flag
From SYSIBM. SYSDUMMY1 D

This value is saved to the Hashed failed (named Sns_run_flag_hash). In this failed there are only two columns named Pk,run_flag.

But can we get the values

Use a user variables activity just like this


If Dang_can_ run_time= ' DEFAULT ' then Utilityhashlookup (' Sns_run_flag_hash ', ' Sns_run_flag_hash ', 1) Else sns_run_flag_ Hash.


Then can user nested condition to decided run the job or not, just so eary.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.