Merging Sequential Files

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you can't get the merge stage to work the way you want, you may need to consider loading the two sequential files up into database tables and then doing the outer join yourself via custom sql.

-craig
Creo
Participant
Posts: 34
Joined: Wed Mar 19, 2003 1:12 pm
Location: Canada

Post by Creo »

Have you looked into the Join Stage? (if you are using DS 6.0 PX)
You can do inner, left, right and outer joins.

Creo
rajesh_potluri
Participant
Posts: 6
Joined: Wed May 07, 2003 5:29 am
Location: India
Contact:

Post by rajesh_potluri »

Since you need all records from both the files, this is a case of full outer join when joining two tables. Here we have a case of joining two files on similar lines.

If u are working on a server job, the join stage over there has the option of full outer join. Simple solution.

If u are working on a mainframe job, the join stage provided has only the left outer, right outer and inner join facilities. In this case, the round about way of achieving this would be to use two join stage flows. One join stage use the left outer join and in the second flow perform right outer join and in the later stage, simply merge the output of the above two flows.

You may get back for ne issues.

Rajesh
Post Reply