DATASTAGE——Hashed file stage使用

 原文档:Hashed File stages represent a hashed file, i.e., a file that uses a hashing algorithm for distributing records in one or more groups on disk. You can use a Hashed File stage to extract or write data, or to act as an intermediate file in a job. The primary role of a Hashed File stage is as a reference table based on a single key field.
 
        关键设置:
  Stage tab -> General -> Stage name : stage 名字
                                                   Use direction path : 指定文件路径      


        Input tab -> Columns : 表列定义
  Output -> General :
        When you extract data from a hashed file, the Hashed File stage has an output link. The properties of this link and the column definitions of the data are defined on the Outputs page in the Hashed File Stage dialog box.
        The General tab is displayed by default and contains the various fields and options.
        If you intend to read and write from a hashed file at the same time, you must either set up a selection on the Selection tab, or you should select the Record Level Read on the General tab. This ensures the file is read in records rather than in groups, and that record locks can operate. Note, however, that this mode of operation is much slower and should only be used when there is a clear need to read and write the same file at the same time.


        Output -> Selection :
        The Selection tab contains optional SELECT clauses for the conditional extraction of data from a file.
        Note: The Selection tab is not available if the hashed file is specified by directory path rather than account name on the Stage page.
        Click on the diagram for more details.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值