Dynamic email body & send with Notification Activity
Posted: Mon Jul 03, 2006 4:29 am
Hi,
I need to create a job where I make up an email body based on data from 2 different SQL extractions (but from the same source) I receive.
Examples of each piece of data I am extracting:
Data1
Module | Message | Source
-------------------------------------
France | Success | File1
UK | Success | File2
Data2
Module | Message | Reason | Source
----------------------------------------------------------
Spain | Fail | Missing number | File3
Germany| Fail | Missing name | File4
The final format I would like (based on the data above) in the email will be
Successful
---------------
France (File1)
UK (File2)
Fail
--------------
Spain - Missing number (file3)
Germany - Missing name (file4)
Can I actually do create an email body within DataStage like that and pass it to the DSSendEmail routine?
I have been using VBScript to do the above but now required to use DataStage to do it and I am clueless how this can be done. Any suggestion will be appreciated. Thanks
I need to create a job where I make up an email body based on data from 2 different SQL extractions (but from the same source) I receive.
Examples of each piece of data I am extracting:
Data1
Module | Message | Source
-------------------------------------
France | Success | File1
UK | Success | File2
Data2
Module | Message | Reason | Source
----------------------------------------------------------
Spain | Fail | Missing number | File3
Germany| Fail | Missing name | File4
The final format I would like (based on the data above) in the email will be
Successful
---------------
France (File1)
UK (File2)
Fail
--------------
Spain - Missing number (file3)
Germany - Missing name (file4)
Can I actually do create an email body within DataStage like that and pass it to the DSSendEmail routine?
I have been using VBScript to do the above but now required to use DataStage to do it and I am clueless how this can be done. Any suggestion will be appreciated. Thanks