[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1115.0. "info on CAB$SHARE_COUNT" by MSDSWS::DUNCAN (Forever VMS, VMS Forever) Thu Jul 23 1992 21:32

Where can I get some info on CAB$SHARE_COUNT and all it does or provides.

My customer is trying to do something that will let him check for a usage count
of 1 and then UNSHARE the document and has requested this info.


Thanks,
Darryl
T.RTitleUserPersonal
Name
DateLines
1115.1There are already a few around...SHALOT::LANPHEARTest the water or turn the tide?Thu Jul 23 1992 22:4314
    Hi Darryl,
    
      Have you looked at note 766 of the A1INFO conference?  There is a
    discussion about UNSHAREing single owner shared documents.
    
      I worked with Bob Halsey (TRCOA::HALSEY) regarding the package he has
    for it, and he talked about making it into something like an ASSET. 
    I've ran the reporting procedures at a customer site, and it's amazing;
    about half a 900K SDAF was single owner.  The customer is now debating
    how to support such a move, because some users would gain 20,000 disk
    blocks!  Since they have disk quotas, there is the need for an
    automatic disk quota program to make the necessary adjustments.
    
    					Cheers, Dan'l
1115.2A script to display usage countIOSG::MAURICECeci n'est pas une noteFri Jul 24 1992 09:1112
    Incidentally in V3.0 the following script will display the usage count
    for you:
    
    decimal i
    get #x1 = fn$ascii(fn$extract(cab$.usage_count[oa$curdoc],1,1))
    get #x2 = fn$ascii(fn$extract(cab$.usage_count[oa$curdoc],2,2))
    compute #y = (#x2 * 256) + #x1
    get oa$display = #y
    
    Cheers
    
    Stuart
1115.3Some clarification on FCRIDNTCR::REDMONDThoughts of an Idle MindFri Jul 24 1992 14:209
    Note that the FCR only outputs a listing of documents with only one
    user if the optional second report is requested.  The report is quite
    useful though as it is sorted by user name so it can be divided up and
    given to users to get them to delete all the messages that they
    "really" own... a good thing to do before you unshare all the usage
    count = 1 messages... At least then if they do blow their disk quota
    the user has had fair warning!
    
    Tony
1115.4Am I too late? Just what you need...TRCOA::HALSEYI'd rather be sailing!Mon Sep 28 1992 17:4320
    
    Sorry for being ridiculously late at seeing this, but it gives you an
    idea how busy I've been.
    
    Yes, Daniel is right.  I haven't followed up the ASSET angle, but I do
    have the programs that I sent down to Daniel.
    
    Basicly, there's one program that scans a specified DAF file, and lists
    all of the statistics for 1,2,3... pointer count records.
    
    Once you have these numbers, you can run another set of programs that
    gives the count values by user, then you give it a list of the users
    who's documents you want to make private, and it goes through the
    motions to do it.
    
    Actually, Daniel made a couple of minor mod's to trap for really messed
    up DAF's (no FCVR running).  You can get the programs from him, or
    myself.  Phone DTN 637-3647
    
    	Bob Halsey, Toronto SWS