Obtaining single datasets from multiple datasets

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
sravanthi
Participant
Posts: 83
Joined: Fri Jun 02, 2006 5:37 am

Obtaining single datasets from multiple datasets

Post by sravanthi »

Hi ,

I have a situation where i Have to combine all the datasets into single datset and generate one single xml file.

I have tried using dummy column on all the datastes and joined(left outer join) but the data is not comming in exact manner.

I need to obtain all the data without any modification.
I 1st dataset conatins a,b column.2nd datatset contain c,d column i need the output as a,b,c,d columns.

Can anyone suggest some solution for my situation.

thanks
sravanthi
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

You cannot do this unless you have a common column (key) in all the three. If not, you have to try with dummy column, as what you have did. Which will result in cross product. Again you need to remove the recoreds based on your requirements. Which is most ineffecient way of doing.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply