-
Downstream & Upstream
What are these terms used for in Datastage - Downstream and Upstream?
-
How to achieve this?
My input data:
Field_Name Value
Customer_ID 100
Customer_Name ABC
Customer_City Delhi
Customer_ID 200
Customer_Name BCD
Customer_City Mumbai
My output should look like
Customer_ID Customer_Name Customer_City
100 ABC Delhi
200 ... -
Sequence Job Creation Scenario
You are given 2 jobs say job A and Job B with parameters x and y respectively. You need to create a sequence job. If you pass parameter x then Job A should run, If you pass parameter y then Job B should run, if you dont pass any parameter then Both Job A & B should run
-
Find Rank Based On Salary
How to find rank based on salaries?
Input
------
sal
5000
5000
4000
3000
Output
---------
Sal Rank
5000 1
5000 1
4000 2
3000 3
-
Add a Sequence Number for a Table/Row
I have a file structure that I need to add things to and it is as follows:
TABLENAME
PROV_TB
ADDR_TB
ADDR_TB
AFFL_TB
TAX_TB
ETAX_TB
EPAY_TB
PROV_TB
I need to know how to create a sequence number the tables in between the PROV_TB. The PROV_TB has been assigned a number I created (153365000 is the 1st, 153365001 is the... -
SRC records
SRC has 1 record I want 10records in target how is it possible ? plz explain me ?
-
What are Stage Variables, Derivations and Constants?
Stage Variable - An intermediate processing variable that retains value during read and doesnt pass the value into target column. Derivation - Expression that specifies value to be passed on to the target column. Constant - Conditions that are either true or false that specifies flow of data with a link.
-
Extract Last 3 Days Data Using SCD
How to extract last 3 days data using SCD?
-
Convert Column Data into Row Data
Solve in Datastage
Input:
col1, col2, col3
----------------
a, b, c
d, e, f
Output like
Col
---
a
b
c
d
e
f
-
Count in Dataset
How to get the dataset record count? with out using orchadmin command
-
Use IDQ Mapplet In DataStage
How to integrate an Informatica Data Quality mapplet with DataStage?
-
Abort Job When Records Exceeds 100
Given a file with 1000 records, design a job which will abort if it exceeds the record count more than 100
-
Output using stage variable concept of transformer only (remove reserve duplicates)
INPUT:
SOURCE DESTINATION DISTANCE(KM)
HYD CHN 500
CHN HYD 500
BANG HYD 600
HYD BANG 600
PUN HYD 750
HYD PUN 750
OUTPUT : -
-
Increasing A Number
I would like to know if you could help me out. I have a a file with 2 columns (TABLENAME and CLOB) and in the TABLENAME there are "Providers". I would like to know how to set them at number 5000 and then increment them, per provider. So if I have 5 providers per file, it would be 5000, 5001, 5002, 5003, 5004. This is a daily file so we will get a file everyday. So Day 2, the 1st provider must be 5005...
-
Convert and Ereplace Every Double Dash
I have heard of both Convert and Ereplace but I am stumped. I need to take every double dash (--) from my files and convert them to a single hyphen (-). What would be the best way to do this?
-
Extracting from Rows
To further this, it is probably simple, but :
TABLENAME(Column) CLOB(Column)
HEADER(first row) PROVIDER12082015
MISCROWS IN BETWEEN
TRAILER(last row) 00000000669
If I have three columns created in the transformer (HeadName, HeadDate, RecCount), how would I put this in the derivations?
HeadName is supposed to be equal to PROVIDER
HeadDate... -
Cumulative Sum Calculation
Solve with steps in datastage
employee_id, salary
--------------------------
10, 1000
20, 2000
30, 3000
40, 5000
Display as
employee_id, salary, cumulative_sum
-----------------------------------
10, 1000, 1000
20, 2000, 3000
30, ... -
Convert multiple rows into columns in datastage
hi
i have sourse like
name,city
johny,newyork
johny,mumbai
johny,del
want output like
name,city1,city2,city3
johny,nework,mumbai,delhi
thanks in advance..
-
Filter Out Errors
I am getting a file in and I want to be sure that it has specific traits. The first record must say HEADER, the second record must say PROVIDER, the last record must say TRAILER, Record Count must equal TRAILER count (HEADER - TRAILER = Record Count; TRAILER COLUMN has number of Records)
DataStage Interview Questions
Ans