-
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
-
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?
-
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..
-
Validation and Row Counts
I need help validating rows. 1st. I have a sequential file that has 139 rows, 2 columns (TABLENAME, CLOB). Of those rows, two (in TABLENAME column) are named "HEADER" and "TRAILER". I do not want these in my output. How do I keep the 137 rows and cut off the HEADER & TRAILER. 2nd. In the TRAILER row (TABLENAME column), there is a number that reads 00000000137 (in the CLOB column), which is the 137...
-
Splitting a Large Job DataStage into Smaller Jobs
What is the process to split the large datastage job into smaller jobs?
-
Filter and External Filter stages
What is the difference between Filter and External Filter stages?
DataStage Interview Questions
Ans