Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!ucsd!ucbvax!decwrl!hplabs!hp-pcd!uoregon!omepd!mipos3!td2cad!brister From: brister@td2cad.intel.com (James Brister) Newsgroups: comp.os.vms Subject: Re: How to find the next available UIC Message-ID: <943@td2cad.intel.com> Date: 6 Jul 88 04:24:09 GMT References: <8807040702.AA15775@ucbvax.Berkeley.EDU> Reply-To: brister@td2cad.UUCP (James Brister) Organization: Intel TD, Santa Clara CA Lines: 21 In article <8807040702.AA15775@ucbvax.Berkeley.EDU> GG.SPY@ISUMVS.BITNET ("John Hascall") writes: [a bunch of lines deleted] > > I do a very similar thing (except that I will re-use UICs). What I >do is scan RIGHTSLIST by opening it for keyed access and repeatedly call >SYS$GET with successively larger key-values (I can stop as soon as I get >RMS$_RNF--you will need to look at all 64K possible members I guess). I had to do the same sort of thing, (I too re-used UIC's) but what I did was get the record definition for sysuaf.dat from the MACRO library ($UAFDEF I believe). I then made a Pascal record out of it; open the sysuaf.dat file for keyed access on the UIC number, FINDK'd the first key in the index, and then did sequential reads on that index until I hit the end. This takes about the same amount of time AUTHORIZE does. If you want the program let me know and I'll e-mail it (or post it if anyone else wants me too.) ---------------------------------------------------------------------------- James Brister brister@td2cad.intel.com "These opinions are obviously those of a psychopath and no one else"