problem with reject link

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ds_team
Participant
Posts: 48
Joined: Sun Dec 03, 2006 12:18 am

problem with reject link

Post by ds_team »

We have source as sequential file. Followed by seqential file stage we have transformer stage and then we have ODBC stage (say A) followed by one more ODBC stage (say B).
Between stage A and B we have reject link. Records which gets rejected due to primary key constraint or duplicacy gets automatically inserted into reject table. The problem with us is that the structure of original table and reject table differs by one field. The original table and the reject table, both have 10 columns. Name of column 2 in original table is "status_code" and in reject table it is "status_value". To correct this we have kept a modifier stage in between stage A and B. Due to this reject link (dotted line) has gone and the column definitions of reject stage B went off. Is this possible to modify the column name by keeping modifer stage in between stage A and B? Will it change the reject link properties.
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

Post by swades »

Try this:

Use copy stage and while mapping on out tab you can change column name.

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

Post by kumar_s »

You mean 'Modify' Stage? Its possible.
As noted Copy stage is more lighter that Modify stage.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

If the so called 'reject table' was designed specifically for this job then I would say standardize the meta data at the table level as well. In otherwords, change the column name to whats in the file. This way there is conformity of metadata.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply