Jon, I did not ask the original question but FWIW no SMF exit gets driven for a 
QSAM/BSAM/BPAM OPEN, so there is no getting the current TOD.

Also OPEN time could be one, two, three or more days before CLOSE time. Date is 
the most significant digits of time. A timestamp without a date is like a money 
amount with cents but the dollars omitted.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Jon Perryman
Sent: Saturday, October 5, 2019 12:38 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: IBM SSI Function Codes 16 and 17

 On Saturday, October 5, 2019, 08:53:07 AM PDT, Charles Mills 
<charl...@mcn.org> wrote:
 
 > I was assuming (yes, I know) that the OP wanted realtime notification of the 
 > OPEN, 
> based on the mention of exits.
> If not, SMF14OPE is pretty good. It gives the time but not the date, which is 
> kind of half an answer.


>From the SMF exit, you can get the current TOD. I'm not sure at what stage of 
>the open the exit is called but I suspect it's at open complete. Is this time 
>not accurate enough? Or do you need from start of OPEN and end of CLOSE?

>From the SMF data, the time will have the same accuracy mentioned. The date 
>will be the header date plus 1 if the open time is less than the header time.

Since the time difference is not available, maybe you can somehow save the open 
time in the DCB or ACB.

The times can be affected by dispatching or swap out. You will need to 
incorporate this into your requirements. 

If all else fails, SVC screening could be a last resort consideration. I don't 
recommend it but you often do what you have to do. Just make sure you take 
extreme precautions.

Jon.  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to