Datastage real time scenario

balanareshj1 5,754 views 14 slides Feb 06, 2015
Slide 1
Slide 1 of 14
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14

About This Presentation

datastage


Slide Content

0Like
First Prev
Next Last




Datastage real time scenario
amulas
Questions by amulas

Yes
1

Reply
Yes
Reply
Vinod
This one is the most complicated that i had ever seen.
Basically it is inverse pivot functionality. but in order to perform inverse pivot
functionality we need at-least 2 columns. So, i am going to generate that extra
column with "1" in 6 rows.
Then Based on this i done the concatenation, after concatenation i used copy
stage then from copy stage one link is going to remove duplicate stage and
another one to lookup stage. in remove duplicate stage i collected the retain =
last value (a,b,c,1,2,3), 1 . in lookup stage i combined both the data and used
transformer stage to collect (a,b,c) then i made a concatenate with (a,b,c) with
actual values(a,b,c,1,2,3) then the data will be {(a,b,c,a),(a,b,c,b),(a,b,c,c),(a,b,c,1),
(a,b,c,2),(a,b,c,3)} now i specified a condition so that i can collect the specified
requirement {(a,b,c,1),(a,b,c,2),(a,b,c,3)}
I can't post the screen shot's if u need further clarification Feel free to mail
mee. I will send the screen shots..
ALL THE BEST !!
KEEP POSTING...
kumar
We can do it using Transformer.Take 3 stage variables(s1,s2,s3),for s1 map the
input column and for s2 we have to write the condition like if
alpha(inputcolumn)= true then trim(s3:,:s1,,,) else s3:,:inputcolumn. for s3 also
we have to write the condition like if alpha(inputcol) true then map s2 into s3
else map s3 to s3.
Input column---->S1
if alpha(inputcolumn)=true then trim(s3:,:s1) else trim(s3:,:inputcolumn)--------
>s2
if alpha(inputcoumn)=true then s2 else s3------->s3
In constraint part we have to write the below condition
if alnum(s2)=true
In derivation part we have to map s2 to output column
I think it will work
poorna
source-->Transformer(use field function by taking stage variable like
field(inputcolumn,,,1,3) and concatenate this field value aging with field ---->
Pivot stage--->target.

Yes
Reply
Yes
Reply
Yes
1

Reply

rupam
Source->TR->RD->Pivot->Target,by using these order of stages we can get
required output.
Transformer:
we have to concatenate the values by using loop(we will get like a,b,c,1,2,3)
after that we have to split it into separate fields using field function.
o/p is:c1 c2 c3 c4 c5 c6 c7
1 a
1 a b
1 a b c
1 a b c 1
1 a b c 1 2
1 a b c 1 2 3
(if we dont want this dummy column we can drop it here itself)
RemoveDuplicate:
put condition retain last
o/p is: c1 c2 c3 c4 c5 c6 c7
1 a b c 1 2 3
pivot;
in derivation of c5 column give c5,c6,c7
here we are converting columns into rows
o/p is: c2 c3 c4 c5 c6 c7
a b c 1
a b c 2
a b c 3
sreenu
Hi.,
we can achieve this by
source--->pivot-->Transformer --> target
we will get 6 columns from pivot stage(columns to rows) then
In transformer stage we have to concatenate the input columns
like col1:col2:col3:(here we can use stage variables and increment that value by
one)
regards
sreenu

Yes
Reply
Yes
Reply
venkatasuresh
Source we have like this a,b,c,d,e,f here 6 columns
a,b,c,1,2,3
e,f,g,4,5,6 we need to get in target
like this a,b,c,1 and a,b,c,2 and a,b,c,3 and e,f,g,4 for that we have to use just
three stages
source---------------->pivot------------------------>target
in pivot we need to implement this code
column,derivation
a,a
b,b
c,c
values,d,e,f and target file name this will work to get that result
Prabhakar Achyuta
Very simple..please go through below.
Input:
CUST_ID
----------
a,b,c,1,2,3
Output:
CUST_ID:
-------------
a,b,c,1
a,b,c,2
a,b,c,3
Solution:
We can solve it from below solution.
JOB flow: Transformer (3 ouyput links)----> Funnel---->Dataset
In Transformer: Use 3 stage variables,
in sv1: left(Cust_id,1,7)
in sv2: left(Cust_id,1,6)||Left(right(Cust_id,3),1)
in sv3: left(Cust_id,1,6)||Right(Cust_id,1)
Take 3 outputs from Transformer, map sv1 to output-1 column CUST_ID,
map sv2 to output-2 column CUST_ID,
map sv3 to output-3 column CUST_ID
Here one input record splits into 3 output records.
Now cature all three output records using Funnel stage.

Yes
ReplyAnswer Question
Send
Reset
RELATED ANSWERED QUESTIONS
 How much time should it to take to set up a server with 5
workstations and network it?
 What is slowly changing dimension(scd)
 What is range look up and how it is used in datastage.
 Having single input source want three different outputs.
 A wall clock looses 10 mins in 1 hr. 4 one hours of wall clock
table clock gains 10mins for 1 hour of table clock alarm clock
looses 5 mins for 1hr of arm clock, wrist watch gains 5min they
were set
 Maintaining data integrity
 Question on testing
 Prepaid expenses
 When the application is ready for testing ?
sivaksa
Guys try simple way.
Source.....trans.....pivot...target
trans...we can use filed function and create new column
col1:filed(inputcol,,,4,1)
col2:filed(inputcol,,,5,1)
Col3:filed(inputcol,,,6,1)
And pivot put output col :col1,col2,col3
Then you can get output

Root cause of defect
Asked by: kurtz182
Obsolete and expired RMAN backups
Asked by: shanthiavari
Null keyword
Asked by: gkumawat
 Flatfiles(.Txt,.Csv,xml) to laod sequential files?
RELATED OPEN QUESTIONS
 Update strategy
 Datastage scenario - flat file
 Datastage scenario - two columns in the source
 Javascript difficulty
 How to identify updated records in datastage.
 Source file and 3 output tables records problem
 Write the real time scenario of different stages in datastage?
 Response time for uploading and downloading of file.
 Wants to change career into Informatica
 Replay the script without browser in vugen
Type and Press Enter

SUBSCRIBE TO RSS FEED
Enter you email
RANDOM QUESTIONS
Subscribe

What is difference between regression and
functional testing
Asked by: kamalakar2000
(52)
(7)
(1)
(2)
(25)
(15)
(26)
(35)
(1)
(22)
(2)
(1)
(212)
(6)
(1)
(206)
(65)
(396)
(217)
What are other performance tunings you have done
in your last project to increase the performance of
slowly running jobs?
Asked by: Interview Candidate
Interviews
TAGS
CLOUD
INTERVIEW QUESTIONS PDF FILES

SPONSORED LINKS

SOCIAL NETWORKS
FANS FOLLOWERS
SUBSCRIBE
TO RSS FEED
FOLLOWERS
SPONSORED LINKS

Datastage scenario - flat file
Asked by: sravanthi
Datastage scenario - two columns in the source
Asked by: sravanthi
Design a job
OPEN QUESTIONS ANSWERED

Asked by: Alekhya ch
Sequential file stage
Asked by: Alekhya ch
How to identify updated records in datastage.
Asked by: taruna.arya
Source file and 3 output tables records
problem
Asked by: taruna.arya
Write the real time scenario of different stages
in datastage?
Asked by: manojkitty
Transformer stage compilation error in
ascential datastage 7.5, windows xp
operating system
Asked by: MrReddy
Unknown transformer variable definition
Asked by: Gina Ying
How to use change capture stage in SCDs
Asked by: chandukommuri

How much time should it to take to set up a
server with 5 workstations and network it?
business
Asked by: Bethany Niccum
What is slowly changing dimension(scd)
Asked by: taruna.arya
What is range look up and how it is used in
datastage.
Asked by: taruna.arya
Having single input source want three different
outputs.
Asked by: taruna.arya
A wall clock looses 10 mins in 1 hr. 4 one hours
of wall clock table clock gains 10mins for 1
hour of table clock alarm clock looses 5 mins
for 1hr of...
Asked by: pravinraja
Maintaining data integrity
Asked by: abhiastra
Question on testing
Asked by: sayooj

Prepaid expenses
Asked by: Mashhood Ek
When the application is ready for testing ?
Asked by: lakshmip.yaganti
Flatfiles(.Txt,.Csv,xml) to laod sequential files?
Asked by: Kiranchandra
Subscribe
TAGS
Accenture
Wipro
AMD
AMDOC
Axes-Technologies
Aztec-Systems
BirlaSoft
Cisco
Cognizant
Dell
GE
HAL
Infosys
ISRO
TCS
Sonata
Adobe
Oracle
Mphasis
RANDOM QUESTION
 LAN Connection
 What is the difference between bubble sort & quick sort?
 Slow Logins
 What is MULTI ORG FLOW? How many organisation are there
in an operating unit?
 How many attribute columns can we have for single dff?
QUESTION OF THE DAY
INTERVIEW & CAREER TIPS

About USPrivacy PolicyTerms & ConditionsDMCAContact Us
© Copyright 2014 GeekInterview.com | All Rights Reserved
CONTACT US
Tags