Miklos, Generating a sysplex-wide "token" value is a very simple process - but having a counter that is only updated (or reset) by permitted tasks on each system presents much more of a programming challenge and would in turn require some sort of runtime options to dictate how the "counter" is handled in normal and abnormal circumstances (for example, what to do if the creating TCB/ASID/SYSTEM goes away unexpectedly).
If you do not care about the counter contents and just want some sort of permanently increasing value then you might get some usage from the STCK/STCKE instruction. Rob Scott Lead Developer Rocket Software 275 Grove Street * Newton, MA 02466-2272 * USA Tel: +1.617.614.2305 Email: [email protected] Web: www.rocketsoftware.com -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Miklos Szigetvari Sent: 08 September 2010 07:37 To: [email protected] Subject: Re: Need a simple counter Hi I understand "not so simple", but the problem is why not , at last in processor level If you compare the effort to get a unique key with the large number of new, sometimes "exotic" , machine instructions you can ask Why it is so. Why don't get a counter from the CPU or with some simple system call ? On 9/7/2010 10:29 PM, john gilmore wrote: > The OP asked for a perhaps SYSPLEX-wide facility. The CF-based approach I > suggested is probably a minimal way to meet this requirement. > > For those of you who have not looked at such problems in any detail itr is > perhaps appropriate to recall that SYSPLEX-wide data sharing poses > significant, non-trivial problems. > > It is not neurosurgery, but It certainly cannot be done in COBOL, which, > whatever its other merits, is not a systems-implementation language. > > You must write authorized code; and you need the appropriate design and > testing skills, as I made clear in my original post. If you don't have them > you should think about getting an ISV who does to do the job for you. > > John Gilmore Ashland, MA 01721-1817 USA > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email [email protected] with the message: GET IBM-MAIN INFO > Search the archives athttp://bama.ua.edu/archives/ibm-main.html > > ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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

