IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to detect file creation event?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri May 20, 2016 1:33 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri May 20, 2016 1:56 am
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri May 20, 2016 2:42 am
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri May 20, 2016 2:46 am
Reply with quote

Ah.. scrub that, found what I was looking for in the subsequent link. - IEFU83 exit

www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieag200/insexit.htm
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri May 20, 2016 3:08 am
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri May 20, 2016 3:41 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top