Thanks to everyone responded.

I should have stated my purpose more clearly - all the application needs is a 
some sort of a reference number, unique within a current week.  This is under 
CICS, so the goal can be easily achieved through the use of a named 
counter.  However, this would come with the overhead of the counter remote 
access and weekly maintenance.

The reason I was looking at the STCKE TOD is - in POP, under SCKPF 
instruction, it is documented to be "unique within a multiple-configuration 
system".  [Isn't this a SYSPLEX?]

So, here's what I think the application should do:
1) determine the current day-of-week [Sun=0,...,Sat=6]; store as byte#1
2) calculate time since today's midnight [by dividing TOD into 0141 DD76 0000 
which is "1 DAY" in clock units, then multiplying by this very value and 
subtracting the result from the TOD]; this will only occupy 6 bytes in clock 
units, so store as bytes ##2-7
3) copy the *last* 4 bytes from the STCKE return into bytes ##8-11

This would require only 11 bytes and should be unique within a current week.

Comments, please?

Thanks!
-Victor-     

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to