What's the best Stage for this scenario

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

What's the best Stage for this scenario

Post by vijayrc »

A newbie. 1st hands-on week..need some help..
In this scenario, which is the 'ideal/best' stage ??
Thanx, V

I have input Charge records in this sequence,
Rec1: AAAAAA $100 01 02 03 04
Rec2: BBBBBB $150 01 04 07
Rec3: CCCCCC $120 01 03 04 07

and I need to create different output files based on the values

AAAAA $100
BBBBB $150
CCCCC $120 in file1 corresponding to '01'

AAAAA $100 in file2 corresponding to '02'

AAAAA $100
CCCCC $120 in file3 corresponding to '03

AAAAA $100
BBBBB $150
CCCCC $120 in file4 corresponding to '04'

BBBBB $150
CCCCC $120 in file5 corresponding to '07'
opdas
Participant
Posts: 115
Joined: Wed Feb 01, 2006 7:25 am

Re: What's the best Stage for this scenario

Post by opdas »

You can try using "Filter Stage"
vijayrc wrote:A newbie. 1st hands-on week..need some help..
In this scenario, which is the 'ideal/best' stage ??
Thanx, V

I have input Charge records in this sequence,
Rec1: AAAAAA $100 01 02 03 04
Rec2: BBBBBB $150 01 04 07
Rec3: CCCCCC $120 01 03 04 07

and I need to create different output files based on the values

AAAAA $100
BBBBB $150
CCCCC $120 in file1 corresponding to '01'

AAAAA $100 in file2 corresponding to '02'

AAAAA $100
CCCCC $120 in file3 corresponding to '03

AAAAA $100
BBBBB $150
CCCCC $120 in file4 corresponding to '04'

BBBBB $150
CCCCC $120 in file5 corresponding to '07'
Om Prakash


"There are things that are known, and there are things that are unknown, and in between there are doors"
vijayrc
Participant
Posts: 197
Joined: Sun Apr 02, 2006 10:31 am
Location: NJ

Re: What's the best Stage for this scenario

Post by vijayrc »

That's exactly I tried. So would a Filter still write the same input records into 2/more different output records, based on the match criteria ?? :cry:
Thanks, V
opdas wrote:You can try using "Filter Stage"
vijayrc wrote:A newbie. 1st hands-on week..need some help..
In this scenario, which is the 'ideal/best' stage ??
Thanx, V

I have input Charge records in this sequence,
Rec1: AAAAAA $100 01 02 03 04
Rec2: BBBBBB $150 01 04 07
Rec3: CCCCCC $120 01 03 04 07

and I need to create different output files based on the values

AAAAA $100
BBBBB $150
CCCCC $120 in file1 corresponding to '01'

AAAAA $100 in file2 corresponding to '02'

AAAAA $100
CCCCC $120 in file3 corresponding to '03

AAAAA $100
BBBBB $150
CCCCC $120 in file4 corresponding to '04'

BBBBB $150
CCCCC $120 in file5 corresponding to '07'
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Yes it will but it depends on the condition ur giving there.

Thanks
sam
shepli
Participant
Posts: 79
Joined: Fri Dec 17, 2004 9:56 am

Post by shepli »

:?: I am not able to see the Filter Stage in my Palette, can anybody give me some instruction on where it is? Thanks.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Is that you couldnt find all of a sudden?
Try to do a customization. Right click on the pallet and go to Custamiztion-->Custamize and select under Parallel processing.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
shepli
Participant
Posts: 79
Joined: Fri Dec 17, 2004 9:56 am

Post by shepli »

Thanks for your reply. It is not "suddenly", instead, I have never used it, and even seen it.
I just found out that I only have Database, File, Processing("Server Processing"), Real Time, and so on, but not the Parallel Processing in my palette. Does that mean the Parallel Processing is not installed at all? I may need to talk to our IT person.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You can also use a Trasformer and add constraints to each stage.
Did you try creating a new parallel job. Unless you dont do that you will not see the Parallel palete.
Secondly, if you are in a old project when there was no PX in your company, then may be even if you open the PX job under that project, you will not be able to see the pallete. It depends on the way the upgrade is made.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Even if a sequence job was opened, customization should give the full list of stages available.
Make sure your server is installed with PX.
If you click on File--->New, are you able to see, Parallel jobs or only Sequence jobs.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Filter stage is only available in parallel jobs. You posted on the parallel forum, which is why folks replied as they did. Your only possible choice of stage in a server job is the Transformer stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply