disable one output link

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
randy
Participant
Posts: 30
Joined: Tue Sep 13, 2005 11:17 am

disable one output link

Post by randy »

I have a transformer with 2 output links that each load into a tables.
I want to disable one of those links so I can test the other.

Thanks
Randy
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Define 'disable'. If that includes not even logging into the database, you'll need to redirect the link to something like a Sequential File stage. Otherwise, setting the Constraint on the link to something that equates to false - like @FALSE for instance - will stop rows from going down it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
randy
Participant
Posts: 30
Joined: Tue Sep 13, 2005 11:17 am

Post by randy »

Putting @FALSE worked partially.

That stage is truncate existing data and then load, so it trucated the rows and then did not load the new data.

I really wanted ds to just ignore that entire link.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly, all that would do is not send rows - however actions like truncate would still happen when the stage is 'opened' and the db logged into.

There's no way to "ignore" a link. As noted, you should drop a Sequential File stage on the canvas and direct your link there temporarily. You'll lose some metadata that will need to be restored when you swing it back, like Update Action. Or depending on exactly what you are doing, create a copy of the job and remove the link.
-craig

"You can never have too many knives" -- Logan Nine Fingers
randy
Participant
Posts: 30
Joined: Tue Sep 13, 2005 11:17 am

Post by randy »

I will mark this as closed, thank you very much.

Randy
Post Reply