create a job to go through all the reject output files

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
abyss
Premium Member
Premium Member
Posts: 172
Joined: Thu May 22, 2014 12:43 am

create a job to go through all the reject output files

Post by abyss »

I wish to create a job to go through all the reject output files and email a summary to user, does anyone know how? parallel job or server job? or should I write a script to do it? I know there is a DSSendMail routine available in datastage
https://www.ibm.com/support/knowledgece ... dMail.html
viewtopic.php?t=94042
http://datawarehouse.ittoolbox.com/grou ... ob-5785370
however i am not sure how to use the datastage routine.

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

Post by chulett »

Not sure there's any need for a "routine" quite yet. A Sequence job can easily be used to create a file and then email that as an attachment. I think we'd need to know a bit more about what you mean by "a summary" to provide more help.

If your reject files are all datasets then you'll need a Parallel job to read them, otherwise it's your choice.
-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 »

Definitely can achieve this with a sequence. Do you want one email per file, or one email to which all files are attached?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
abyss
Premium Member
Premium Member
Posts: 172
Joined: Thu May 22, 2014 12:43 am

Post by abyss »

Thanks chulett, the reject file don't have to be dataset.
the summary means IDEALLY i want tell user number of total rejected records been produced each job in the email.

so you saying I should create a server job to do it?

thanks
abyss
abyss
Premium Member
Premium Member
Posts: 172
Joined: Thu May 22, 2014 12:43 am

Post by abyss »

Ray - yeah just one email with all the files that are not empty :)
thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That doesn't sound like any kind of a summary.

Use whatever you are most comfortable with to create the summary - Server job, Parallel job, script - if your rejects are plain text files than any of those could be used. And IMHO create one file with a summary of all rejects and attach that, the Notification Activity only supports one (from what I recall) and there really isn't a need to send out "all of the files that are not empty" when the goal is to produce a summary.

Typical would be a csv file, that would automatically open as an Excel spreadsheet on Windows, which most consumers would be most comfortable with.

ps. Use the Reply to topic link rather than quoting everything all the time unless there really is a need to quote the post you are replying to. Hint: there generally isn't. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
johnboy3
Premium Member
Premium Member
Posts: 52
Joined: Fri Jun 19, 2015 2:48 pm
Location: Jackson, MS, USA

Post by johnboy3 »

Reply to topic! Yessss!
john3
john3
----------------------------------------------------
InfoSphere 8.5.0.2; DataStage 8.5.0.0; OS-RHEL 6.6; DB-Oracle Enterprise Edition 11g (11.2.0.4)
Post Reply