Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to detect file creation event?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Fri May 20, 2016 1:33 am    Post subject: How to detect file creation event?
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: 7904
Location: Bellevue, IA

PostPosted: Fri May 20, 2016 1:56 am    Post subject:
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 http://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 http://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: 1445
Location: Azeroth

PostPosted: Fri May 20, 2016 2:42 am    Post subject:
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.
https://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: 1445
Location: Azeroth

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

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

https://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: 7904
Location: Bellevue, IA

PostPosted: Fri May 20, 2016 3:08 am    Post subject:
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: 1445
Location: Azeroth

PostPosted: Fri May 20, 2016 3:41 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us