Email notification?

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

The easiest way to do this on your platform and at your release is to download one of the third party command line mail programs on the net (such as blat), and invoke this from, perhaps, a before-job subroutine or a job control routine via DSExecute(), with a shell argument of "NT". Chase back through this lists archives for threads on this topic.

Ray Wurlod
Trainer - Asia Pacific Region
IBM Informix Training Department
Level 22, 60 City Road,
Southbank Vic 3006
Tel: +61 3 9626 6624
Fax: +61 3 9626 6622
Notes: Raymond Wurlod/Australia/IBM
Email: wurlodr@au1.ibm.com
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Email notification?

Post by admin »

Hello all,

Im using datastage 4.1 on Windows 2000. I have a job that reads in a text file from the working directory. The file is austomatically deleted after the job is run. Every day, a new file is supposed to be placed in the working directory and the job run again. Im wondering if there is a way to have the job automatically email the person who is supposed to place the file in the working directory if the file is not there.

Regards,

Simon V
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

DOS also has commands you can make use of which test
for the existance of the file. if it does not exist
set flag and abort the process.

-----Original Message-----
From: Simon Vollett
To: datastage-users@oliver.com
Sent: 2/18/02 12:19 AM
Subject: RE: Email notification?

Thanks

-----Original Message-----
From: Raymond Wurlod [mailto:wurlodr@au1.ibm.com]
Sent: Monday, February 18, 2002 4:02 PM
To: datastage-users@oliver.com
Subject: Re: Email notification?



The easiest way to do this on your platform and at your release is to download one of the third party command line mail programs on the net (such as blat), and invoke this from, perhaps, a before-job subroutine or a job control routine via DSExecute(), with a shell argument of "NT". Chase back through this lists archives for threads on this topic.

Ray Wurlod
Trainer - Asia Pacific Region
IBM Informix Training Department
Level 22, 60 City Road,
Southbank Vic 3006
Tel: +61 3 9626 6624
Fax: +61 3 9626 6622
Notes: Raymond Wurlod/Australia/IBM
Email: wurlodr@au1.ibm.com
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

Thanks

-----Original Message-----
From: Raymond Wurlod [mailto:wurlodr@au1.ibm.com]
Sent: Monday, February 18, 2002 4:02 PM
To: datastage-users@oliver.com
Subject: Re: Email notification?



The easiest way to do this on your platform and at your release is to download one of the third party command line mail programs on the net (such as blat), and invoke this from, perhaps, a before-job subroutine or a job control routine via DSExecute(), with a shell argument of "NT". Chase back through this lists archives for threads on this topic.

Ray Wurlod
Trainer - Asia Pacific Region
IBM Informix Training Department
Level 22, 60 City Road,
Southbank Vic 3006
Tel: +61 3 9626 6624
Fax: +61 3 9626 6622
Notes: Raymond Wurlod/Australia/IBM
Email: wurlodr@au1.ibm.com
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post by admin »

Save the following in a bat file name check.bat

@echo off
rem 2001 , Comparex Africa COA, Pieter Brundyn
if not exist %1 goto notfound
goto found

:notfound
goto exit1

:found
echo File has been found....
rem Run a program...
goto exit1

:exit1

-----
From datastage run (using CallDSExecute)
check.bat C:command.com




Regards
Pieter Brundyn


Customer Oriented Applications Division (Comparex Africa COA)
For: Comparex Africa (Pty) Ltd
Company Registration number: 1993/003683/07
Tel: +27 (0)21 550 3427
Fax:+27 (0)21 550 3455
email: pieterb@comparexafrica.co.za

NOTICE:
This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify Pieter Brundyn at Comparex Africa
(Pty) Ltd immediately,
telephone number +27 (0) 21 550 3427. Any unauthorised use, alteration or dissemination is prohibited.
Comparex Africa (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or
consequential, arising from information made available and actions resulting there from.



-----Original Message-----
From: Himanshu Patel [mailto:Himanshu.Patel@globalknowledge.com]
Sent: Monday, February 18, 2002 7:16 AM
To: Simon Vollett ; datastage-users@oliver.com
Subject: RE: Email notification?


DOS also has commands you can make use of which test
for the existance of the file. if it does not exist
set flag and abort the process.

-----Original Message-----
From: Simon Vollett
To: datastage-users@oliver.com
Sent: 2/18/02 12:19 AM
Subject: RE: Email notification?

Thanks

-----Original Message-----
From: Raymond Wurlod [mailto:wurlodr@au1.ibm.com]
Sent: Monday, February 18, 2002 4:02 PM
To: datastage-users@oliver.com
Subject: Re: Email notification?



The easiest way to do this on your platform and at your release is to download one of the third party command line mail programs on the net (such as blat), and invoke this from, perhaps, a before-job subroutine or a job control routine via DSExecute(), with a shell argument of "NT". Chase back through this lists archives for threads on this topic.

Ray Wurlod
Trainer - Asia Pacific Region
IBM Informix Training Department
Level 22, 60 City Road,
Southbank Vic 3006
Tel: +61 3 9626 6624
Fax: +61 3 9626 6622
Notes: Raymond Wurlod/Australia/IBM
Email: wurlodr@au1.ibm.com
NOTICE:

This message contains privileged and confidential information intended
only for the person or entity to which it is addressed.

Any review, retransmission, dissemination, copy or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient, is prohibited.

If you received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the material from any computer.

The New Africa Capital Group, its subsidiaries or associates do not accept liability for any personal views expressed in this message.
Locked