DSSendMail only upon the records reject

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

mikegohl
Premium Member
Premium Member
Posts: 97
Joined: Fri Jun 13, 2003 12:50 pm
Location: Chicago
Contact:

Post by mikegohl »

I use that code in a afterjob subroutine of the job that creates the reject file, not in the sequence job.
Michael Gohl
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

dsedi wrote:Can I use the DSGetLinkInfo in the Job activity Trigger expression?
In other words, nope. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

dsedi wrote:Can I use the DSGetLinkInfo in the Job activity Trigger expression?
I don't see why not, but it would need to be part of an expression that could be interpreted as true/false to control notification properly. Therefore it could only be invoked indirectly (through a Routine) because the job handle argument can only be managed by DSAttachJob() and DSDetachJob() - DSJ.ME would pertain to the job sequence itself. Then there is the problem of the DEFFUN declaration. All in all, an upstream Routine activity would be a better way to capture the row count.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dsedi
Participant
Posts: 220
Joined: Wed Jun 02, 2004 12:38 am

Post by dsedi »

Thanks very much Mike,Bob ,chulett,ray for stopping by..its truly appreciated.
I am marking this as Resolved.
mikegohl
Premium Member
Premium Member
Posts: 97
Joined: Fri Jun 13, 2003 12:50 pm
Location: Chicago
Contact:

Post by mikegohl »

Just wonder which way you implemented the solution?
Michael Gohl
dsedi
Participant
Posts: 220
Joined: Wed Jun 02, 2004 12:38 am

Post by dsedi »

mikegohl wrote:Just wonder which way you implemented the solution?
Mike,
Apologies for the delay..
In the sequencer, after the Job activity (for reject file creation)we have the Exec command activity. Which will execute the wc -l and the trigger expression will have Field(trim( Execute_Command_4.$CommandOutput) ,' ',1) >1 (because my error file will have header record always) which will control the Notification

I have tried the DSGetLinkInfo but no luck.
But I'll keep that issue as a separate post with a meaningful subject.

Once again.. Thanks everyone for your suggestions.
Post Reply