|
View previous topic :: View next topic
|
| Author |
Message |
jothibso
New User
Joined: 03 Sep 2009 Posts: 18 Location: chennai
|
|
|
|
| I need to email the NDM details like Process #, Starting Time, Ending Time, sending and recieving dataset name as soon as i transmit file via NDM if its successful. In case of NDM failure I need to email a failure notice. I need this in test scenario |
|
| Back to top |
|
 |
Ketan Varhade
Active User

Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
| You can dump the NDM Log to a data set and then simply write a step for email the dataset |
|
| Back to top |
|
 |
jothibso
New User
Joined: 03 Sep 2009 Posts: 18 Location: chennai
|
|
|
|
| how to dump the NDM log to a dataset, i will not be having any details like process # at the time of NDMing. to be more specific I need to get this done through batch |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
When you run your DMBATCH step, you'll have to save the process number from the DMPRINT DD. Then, after the process completes, you'll have to run a SELECT STATISTICS report, using the stored process number, and then you can pull the details you need from the report output.
FWIW, in my shop we let our console Automation product do this process. |
|
| Back to top |
|
 |
jothibso
New User
Joined: 03 Sep 2009 Posts: 18 Location: chennai
|
|
|
|
I need to do this process without manual intervention.....
Once i submit the NDM batch job, if NDM is successful then the NDM details should be mailed automatically. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
| Quote: |
| FWIW, in my shop we let our console Automation product do this process. |
Suggest you reflect on this last bit from Kevin. . .
Then talk with your automation and/or scheduling people to implement. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| If the task was as simple as just sending a notification out when the Process ended with the basic OK/FAIL details, then I might have suggested just adding a step to the the Process to simply send a message. However, nothing at that level can provide the details as specified. A SELECT STATISTICS report HAS to be run, but HOW you handle that is entirely up to you. One alternative that's already been mentioned is to pull the details you want from the LOG file. However, you'll need to talk to the support team for Sterling Commerce in order to obtain the record layout details. Since they provide an optional reporting tool that uses SAS to process the LOG files, they may not be willing to divulge those details. |
|
| Back to top |
|
 |
|
|