datastage

How change the XPATH and XML output format in DataStage?

混江龙づ霸主 提交于 2020-01-25 08:04:33
问题 I HAVE some problem in XPATH In XML Output I Want The Output Like <categories> <category NAME="A"> <redcord a="1"></redcord> <redcord a="2"></redcord> </category> <category NAME="B"> <redcord b="ASD"></redcord> <redcord b="QWE"></redcord> </category> </categories> I HAVE XPATH LIKE : /categories/category[@NAME="A"]/redcord/@a AND /categories/category[@NAME="B"]/redcord/@b The Output that i've been making is <categories> <category NAME="A"> <redcord a="1" b="ASD"></redcord> <redcord a="2" b=

Where are the C++ compiler folders LIB and INCLUDE located?

一笑奈何 提交于 2020-01-05 05:49:12
问题 I'm trying to set C++ compiler for IBM DataStage ETL tool. I installed Microsoft Visual C++ 2008 Redistributable (x64) for my Windows Server 2008 R2. The DataStage guide says that Visual Studio .NET 2008 Express Edition C++: Set the LIB environment variable to the location of the library directory for the SDK. For example, for Microsoft Visual Studio .NET 2008 Express Edition C++, a typical location is C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib. Set the INCLUDE environment variable to

How to compile a Datastage Job using Execute Command Stage or Routines in Datastage 11

笑着哭i 提交于 2019-12-25 01:09:47
问题 I am trying to compile the datastage jobs using the Execute Command stage in datastage 11 or any Routines if possible. My datastage is on Unix machine. I tried the following links to go, but I don't know how to do it. https://www-01.ibm.com/support/docview.wss?uid=swg21595194 So, How can I Compile a datastage job in UNIX from command line or any Routines. Please help me in doing so. Thank you. 回答1: It is not possible to compile DataStage jobs in Unix OS. DataStage jobs can only be compiled

on datastage, Datatype Date with zeros and default values on oracle table are missing

我的未来我决定 提交于 2019-12-24 21:22:33
问题 The tables to create the Table T_D_SVC_LOC are all from oracle database, In several of those tables, there are Dates with zeros and real number Dates. oracle database uses Numbers for Dates. When I try to write to the T_D_PR_SVC_LOC table, which dates are converted by Oracle from numbers to dates; By Oracle. One of these default date are 01010101 and returns the date as follows 01-JAN-01; Also notice that when the dates are not 0 , oracle uses the actual number for the date using the same

Read the file in UNIX without Using Unix Command (may be Datastage routine)

断了今生、忘了曾经 提交于 2019-12-24 20:21:45
问题 I have a file in a Unix path which has data like: 2019-06-21,2019-06-22|2019-06-22,2019-06-23 I want to read this date and pass this to User Variable Activity . I am not allowed to Use ant Unix command to read the file. I read some forum and found that it can be done by routine activity,but not sure where to write the routine and whats the routine name. Can anyone help in this * open FinaltestOut.txt OPENSEQ /home/shivam : '\' : FinaltestOut.txt TO H.FinaltestOut.txt THEN CALL DSLogInfo("****

Check the logs and abort the jobs on the basis of the count received

谁说我不能喝 提交于 2019-12-13 05:16:34
问题 For my code , I have 5 logs generated for 5 different tables . I have to find for which table the records are not loaded correctly . Logs generated NWPR_TempLoad_CSP_11.log: 0 Rows not loaded due to data errors. NWPX_TempLoad_CSP_11.log: 326 Rows not loaded due to data errors. PRAD_TempLoad_CSP_11.log: 0 Rows not loaded due to data errors. PRER_TempLoad_CSP_11.log: 0 Rows not loaded due to data errors. PROV_TempLoad_CSP_11.log: 0 Rows not loaded due to data errors. PRSQ_TempLoad_CSP_11.log: 0

Assigning an SQL result to a Job Parameter in DataStage

蹲街弑〆低调 提交于 2019-12-13 02:55:50
问题 I just started using Datastage (version 11.5) and I am trying to assign the value of a simple SQL query (select max(date_col) from Table) into a Job Parameter so that I can use it as a part of a file produced from the job. Can anyone point out a simple approach to this, since I am rather lost on how to include SQL queries in parameter values. Thanks in advance. 回答1: There are some options to do this. The one I recommend is: write the result of you query into a sequential file Use a Execute

loops in Transformer Stage

两盒软妹~` 提交于 2019-12-11 15:13:25
问题 I want the output of dates from particular range in a specific format date1: 2019-06-18 date2: 2019-06-22 Output will be: 2019-06-19|2019-06-19,2019-06-20|2019-06-20,2019-06-21|2019-06-21 I want to do this via Datastage Component only, no unix, no perl script. 回答1: From one input record you can generate multiple rows witha transformer loop. Date1 is frim the inout and date2 could be built with currentdate() in the transformer. In the loop @IERATION is the the loop counter so you could use

How to add new line after closing tg in Datastage xml output?

流过昼夜 提交于 2019-12-11 14:45:43
问题 So i've been making a XML output with the output layout/format/styling like this <HAI> <TIME_SK> <INSERT_DATE> 20191021 </INSERT_DATE> <SRC_STM_ID> 1 </SRC_STM_ID> <HAI> <TIME_SK> <INSERT_DATE> 20191021 </INSERT_DATE> <SRC_STM_ID> 1 </SRC_STM_ID> but i wanted to make the output like this <HAI> <TIME_SK> <INSERT_DATE> 20191021</INSERT_DATE> <SRC_STM_ID>1</SRC_STM_ID> Someone have any idea? Thankyou 来源: https://stackoverflow.com/questions/58705214/how-to-add-new-line-after-closing-tg-in

ETL介绍与ETL工具比较

隐身守侯 提交于 2019-12-06 06:56:03
本文转载自:http://blog.csdn.net/u013412535/article/details/43462537 ETL ,是英文 Extract-Transform-Load 的缩写,用来描述将数据从来源端经过萃取(extract)、转置(transform)、加载(load)至目的端的过程。 ETL 一词较常用在 数据仓库 ,但其对象并不限于 数据仓库 。 ETL负责将分布的、异构数据源中的数据如关系数据、 平面数据文件等抽取到临时中间层后进行清洗、转换、集成,最后加载到数据仓库或数据集市中,成为联机分析处理、数据挖掘的基础。 ETL是数据仓库中的非常重要的一环。它是承前启后的必要的一步。相对于关系数据库,数据仓库技术没有严格的数学理论基础,它更面向实际工程应用。所以从工程应用的角度来考虑,按着物理数据模型的要求加载数据并对数据进行一些系列处理,处理过程与经验直接相关,同时这部分的工作直接关系数据仓库中数据的质量,从而影响到联机分析处理和数据挖掘的结果的质量。 数据仓库是一个独立的数据环境,需要通过抽取过程将数据从联机事务处理环境、外部数据源和脱机的数据存储介质导入到数据仓库中;在技术上,ETL主要涉及到关联、转换、增量、调度和监控等几个方面;数据仓库系统中数据不要求与联机事务处理系统中数据实时同步,所以ETL可以定时进行。但多个ETL的操作时间