souce file having the columns like
name company
krish IBM
pooja TCS
nandini WIPRO
krish IBM
pooja TCS
if first row will be repeat i want the result like this
name company count
krish IBM 1
pooja TCS 1
nandini WIPRO 1
krish IBM 2
pooja TCS 2
Answer Posted / shasank, pr3systems
use transforemr stage and give three stage variable with intial value as 0,
then give (if company=ibm then count=count+1 else stgvar1)
like give three conditions for remaing two companies in two stage variables)
and in column derivation give if company=ibm then stgvar1 else
if company=wipro then stgvar2 else if company=tcs then stgvar3 else 0(company not in list)
| Is This Answer Correct ? | 7 Yes | 5 No |
Post New Answer View All Answers
What are the steps required to kill the job in Datastage?
Have you have ever worked in unix environment and why it is useful in datastage?
Hi guys, Please design a job for dis requirement with derivation(solution). my source table like dis. emp_no qualification 1 a 1 c 2 a 3 c 3 b To loaded to target like dis emp_no qualification 1 b 2 b 2 c 3 a my requirement is every employer have three qualifications i.e a,b and c. what qualification missed in source table that will be move to target systems. Hope u got it the requirement. Right Thanks.
Whats difference betweeen operational data stage (ods) and data warehouse?
Different ways a project can be moved to production ?...example ….export-import and Version control.
What is the difference between hashfile and sequential file?
How to reverse the string using unix?
What is apt_config in datastage?
What are the functionalities of link collector?
Which commands are used to import and export the datastage jobs?
Differentiate between hash file and sequential file?
Explain connectivity between datastage with datasources?
What are stage variables and constants?
What is the difference between passive stage and active stage?
What is the difference between validated and compiled in the datastage?