-
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...
-
-
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 : -
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
-
Use IDQ Mapplet In DataStage
How to integrate an Informatica Data Quality mapplet with DataStage?
-
Count in Dataset
How to get the dataset record count? with out using orchadmin command
-
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
-
Extract Last 3 Days Data Using SCD
How to extract last 3 days data using SCD?
-
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.
-
SRC records
SRC has 1 record I want 10records in target how is it possible ? plz explain me ?
-
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... -
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
-
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
-
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 ... -
Downstream & Upstream
What are these terms used for in Datastage - Downstream and Upstream?
-
Maximum score details among 10 records using transformer stage
I have 5 records in student table. I want maximum score student details. How to do this with transformer stage.
Example:Input::: Student table
Sno smarks
1 50
2 45
3 34
4 50
5 33
I want output like this::
sno smarks
1 50
4 50 -
Display with Commas
Solve these with suitable logics in datastage
Input is like..
department_no, employee_name
----------------------------
20, R
10, A
10, D
20, P
10, B
10, C
20, Q
20, S
want result like
department_no, employee_list -
Add 10 days to a particular date
How to implement the scenario: Add 10 days to a particular date in Datastage PX
-
How we can implement Bulk Collect methodology in Datastage
I have faced an interview question recently.
In database we are using Bulk Collect concept to load the bunch of records ata time.
How we will achieve the same process in Datastage ?
Can we use any paticular stage or any other methodology we can implement.
Can any one help me on this.
Thanks in advance.
Aloka -
I would like to have output as like this 101 90 next line 102 65 next line 102 55 etc...
11. Find The Output With out PIVOTE stage
Source File: Target
SNO, MATHS, PHYSICS, CHEMISTRY SNO, MARKS
101, 70, 80, 90 101, 70
102, 65, 55, 75 101, 80
101, 90
102, 65
102, 55
102, 75
DataStage Interview Questions
Ans