分析IBM datastage job 构建过程

在IBM datastage job 中我们知道共有三种类型,在此简单阐述下

1.server job ,运行在server 服务器端,简单用于逻辑控制的job 可以采用这种方法实现

2.parallel job ,并行运行的job,对于大多数的job develop 采用这种方法来实现

3.sequence job,主要是作流程控制用的。


简单举例说明:

现在有一个parallel job which named edw_dss_dm_dang.这个job 可能不是很复杂,是用来进行数据加载或是备份的我们称之为(ETL过程)。

现在要把这个job 加入到一个单元 sequence中,也就说这个sequence 是专门为dang类job 操作的。we call this sequence as dang_sequence.before we added this dang job into dang sequence need to decide when the job should be run ,so 在这里我们添加一个参数 run_time to decide which dang job can run named dang_can_ run_time which setted to boolean type。when the parameter is Y then dang_job can run,but the parameter is set to default value N.SO when we run dang_sequence ,Have to manutal 。

but,as all we know ,there is 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 do something .so there a parameter should be called dang_can_ run_time,and the parameter default valued not be set to N OR Y but default。 because we should sett it use program 。so we may use server job .

有一个sql 能够很好的说明这一点 :

礼拜一可以处理

select 'dang_can_ run_time' as pk, case when dayofweek(CURRENT DATE) in (2) then 'Y' 
else 'N' end as run_flag
from SYSIBM.SYSDUMMY1 d

这个数值被保存到hashed failed (named sns_run_flag_hash)中。in this failed there is only two columns named pk,run_flag。

but how 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.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing, IBM Corporation, North Castle Drive, Armonk, NY 10504-1785 U.S.A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrate

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值