View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
Could you please let me know how schedulers like CA7, Control-M detect when a file is created on the system.
Schedulers trigger jobs when a dataset is created. I am trying to understand how they do it. Do they have some sort of started task that monitors file creation event 'somehow?' api hook into zOS or something.
Would it be possible to mimic it with a user started task. This is for an experiment in academic server. Not on client system.
Regards,
Vasanthz |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
I found this CA-7 Support web site which says
Quote: |
TROUBLESHOOTING:
Reply to ICOM's WTOR with D=EXTDSN to make sure you see your newly added data set names.
Perform the top-line command in CA 7.
LCTLG,DSN=data.set.name
(If CA 7 received the SMF type 15 record, the DATE and TIME the data set was created or updated appears here).
Other References:
TEC395371 - Procedure for updating CA 7 external data set tracking table.
TEC395387 - Procedure for updating CA 7 external job tracking tables.
Read more at www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec500384.aspx |
so I suspect CA-7, at least, is intercepting the SMF15 record write and grabbing the data set name and so forth from there.
Dovetailed Technologies at community.dovetail.com/forum/viewtopic.php?t=901 talks about intercepting console messages with specific message ids. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi Robert,
Thank you for the two informative links.
On the dovetail link it was mentioned that Control-M uses SYSLOG messages and some special processing for FTP and SFTP.
Out of the two possibilities via SMF 15 and syslog, I believe monitoring the SMF 15 is the cleaner approach than to scour through different message types on the syslog.
Could you please let me know how to grab information from SMF record as it is generated. Before being written to MAN dataset.
I did some reading here, but unable to find how to capture SMF records.
www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieag200/macros.htm
Gracias,
Vasanth |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
LOL - you beat me to it; sample IEFU83 code can be found in SYS1.SAMPLIB as member IEEU83 (note the member name is different). You'll need to make sure the exit is compiled with the right options and that the SMFPRMxx member supports IEF783 (either explicitly or implicitly). |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Thank you again Robert, I was looking at CBT Tapes 134 & 135, they were promising.
I know nothing of Assembler, but the SYS1.SAMPLIB(IEEU83) is only 279 lines and that is encouraging sign to try assembler.
SAS has made me lazy and never looked at assembler, but time has come to do some assembler reading.
Regards,
Vasanth |
|
Back to top |
|
|
|