I am five tab delimited files(same meta data), i want to app

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
4friends
Participant
Posts: 71
Joined: Tue May 01, 2007 12:51 pm
Location: Mumbai

I am five tab delimited files(same meta data), i want to app

Post by 4friends »

I am five tab delimited files(same meta data), i want to append them in single oracle table.In wat way i can append. :evil:
thanks & regards
kk
4friends
Participant
Posts: 71
Joined: Tue May 01, 2007 12:51 pm
Location: Mumbai

Post by 4friends »

I am having five tab delimited files(same meta data), i want to append them in single oracle table.In wat way i can append.
thanks & regards
kk
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: I am five tab delimited files(same meta data), i want to

Post by sachin1 »

job design as below.

take all of your five input input files ----> Transformer--->hash file(or sequential file if you want to maintain duplicate records)-->OCI stage (Insert rows without clearing).

hope this design may help.

2nd design:
may folder stage also help.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Sequential File stage. Set it to use a Filter command. Use type or copy as the filter command.

Code: Select all

type file1 file2 file3 file4 file5
DataStage reads the output of the filter command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Post by gateleys »

Or, use a Link Collector to merge them before loading.
gateleys
4friends
Participant
Posts: 71
Joined: Tue May 01, 2007 12:51 pm
Location: Mumbai

Post by 4friends »

Hey,
In Informatica, by using one single stage we can extract from five files..
In datastage there is an option like that....

I am very new to Datastage guys... thats why.......
:!: :!: :!: :!: :!:
thanks & regards
kk
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Sure is. Sequential File stage, either with a Filter command as indicated, or with five output links.

Code: Select all

            -------------->
    Seq     -------------->   Oracle
    File    -------------->   OCI
    stage   -------------->   stage
            -------------->
And that's just with server jobs. In parallel jobs there are even more options, for example a single Sequential File stage reading using multiple File property values or a wildcard, using parallel processes.
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