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...


How to get EVEN & ODD numbers separately?

Answers were Sorted based on User's Feedback



How to get EVEN & ODD numbers separately?..

Answer / amedela chandra sekhar

By using the condition in router transformation
drop the required ports into router t/r
add one group
even mod(empno,2)=0 ------Target1
defaultgroup -------------Target2

Is This Answer Correct ?    8 Yes 1 No

How to get EVEN & ODD numbers separately?..

Answer / raghava

data one;
input number 10.;
datalines;
10
11
12
13
14
15
16
17
18
19
20
;
run;
data two;
set one;
if mod(number,2)=0 Then A=number; else B=number;

/* number=mod(number);*/

run;

Is This Answer Correct ?    7 Yes 0 No

How to get EVEN & ODD numbers separately?..

Answer / tejeya

By using the Sequence generator and Mod() in Expression tfn.

Is This Answer Correct ?    9 Yes 6 No

How to get EVEN & ODD numbers separately?..

Answer / krishnakanth.ch

There are many ways....

1) Using the sql override in the source qualifier. To find
the even and odd. Add another column to flag the even and
odd.Like

select ID,decode( id/2,0,'E','O') FLAG FROM TABLE_NAME;

Using the router we can send them into two seperate target
tables.

Is This Answer Correct ?    4 Yes 1 No

How to get EVEN & ODD numbers separately?..

Answer / amedela chandra sekhar

for above answer
Remember empno should be like
1
2
3
4
5
6
7
8
9
other wise drag nextval port from sequence generator to
union t/r give condition like mod(nextval,2)0

Is This Answer Correct ?    3 Yes 0 No

How to get EVEN & ODD numbers separately?..

Answer / prasad

no
1
2
3
4
5
6
7
8
9
10

i wrote a condition in transformer if mod(no,2)=0 Then B else A

Target

A
1
3
5
7
9

Target
B
2
4
6
8
10

Is This Answer Correct ?    4 Yes 1 No

How to get EVEN & ODD numbers separately?..

Answer / vali

by using the condition in expression transformation
mod(empno) .the output given torouter t/r. if the o.p is
zero given to one group and if one given to default group..

Is This Answer Correct ?    1 Yes 2 No

How to get EVEN & ODD numbers separately?..

Answer / usha

by using Sequence Generator transformation we can get even
to one target and odd to other target


end valu=2
cycle should enable
start val=1
curr value=1

s-->sq-->seq-->RTR-->t1-->t2

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Informatica Interview Questions

What is the main data object present inbetween source and target. I answered Mapping. Transformation etc.. But it is not the answer. So please give me an apt answer. Thanks in advance

15 Answers   Deloitte,


ename,deptcount vamshi,3 kumar,5 krish,8 in o/p i want vamshi record 3 times kumar record 5 times like wise what is the logic.? give the entire logic plz

1 Answers   IBM,


Is it possible to update the target table with PK?

1 Answers   TCS,


What is power play plug in?

2 Answers  


What is the capacity of power cube?

1 Answers  


Which is the best place to learn Informatica Powercenter Online Training?

1 Answers  


How to generate sequence numbers without using the sequence generator transformation?

0 Answers   Informatica,


I need the output file in the below format using Informatica. __0946684800__ 6 1 3 1 5 1 6 1 10 1 6 10 Pos State Time Split AgentID Reason Spaces Code in Code Spare state ______ ___ _____ ______ __________ ______ 1234 14 0 4321 3103 abcd 4321 15 5 123452 3150 Can someone help please?? We need the data in space-delimited, fixed ASCII format .

0 Answers   Amazon,


How to eliminate duplicates from flat file..what is the procedure

4 Answers  


Slowly changing dimensions, types and where will you use them

0 Answers  


Target increases every day even though no new record was inserted

0 Answers   Accenture,


Can we get 1st record through Informatica(without sequence number).

0 Answers  


Categories