Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


input like
2 7 8
9 5 1
7 3 6

output:2 5 6 how to find out this plz explain?

Answers were Sorted based on User's Feedback



input like 2 7 8 9 5 1 7 3 6 output:2 5 6 how to find out this plz explain?..

Answer / deepanshu

supposing single column is there having values
278
951
736

sol'n :
Use transformer string function with @inrownum variable.

inputcolumn[@inrownum,1]
will give you desired o/p

Is This Answer Correct ?    0 Yes 0 No

input like 2 7 8 9 5 1 7 3 6 output:2 5 6 how to find out this plz explain?..

Answer / bhavani

we can acheive this using transformer stage:
1. Check the record count using AGGREGTOR stage and have a column count
2. In the transformer initiate a loop with condition @ITERATION <=count. and loopvar = @iteration
3.if @INROWNUM = loopvar then right(left(@iteration),1) --> output value

Now the result will be 2
5
6

Let me know if this is correct.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Data Stage Interview Questions

How do you import and export the datastage jobs?

0 Answers  


Hi guys, 7. how to get this output i/p col1,col2 101,a 102,b 103,c 104,d o/p col1,col2 101,d 102,c 103,b 104,a Thanks

2 Answers   Cap Gemini, IBM,


country, state 2 tables r there. in table 1 have cid,cname table2 have sid,sname,cid. i want based on cid which country's having more than 25 states i want to display?

3 Answers   Wipro,


What are the areas of application?

0 Answers  


State the difference between an operational datastage and a data warehouse?

0 Answers  


Tell me the syntax of Configuration file?

1 Answers  


how to configure databases through datastage

2 Answers  


Can you explain kafka connector?

0 Answers  


How many nodes supported by a one cpu in parallel jobs?

3 Answers   IBM,


How many types of views are there in a datastage director?

0 Answers  


Hi This is Vijay How Can u Read the data from sequential file Parall'y?

5 Answers   Semantic Space,


How can we select pr retrieve the particular row in dataset by using orchadmin command?

1 Answers   IBM,


Categories