× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Locking Interactive Users Out of File
  • From: Pete Massiello <PMassiello@xxxxxxxxxxxxxxxx>
  • Date: Mon, 28 Jul 1997 08:45:32 -0400
  • Organization: OS Solutions International, Inc.

Karen Bellecci wrote:
> 
> I need to lock my interactive users out of the data files in a certain library
> during the nightly batch run, until I can check the nightly batch run the next
> morning to see if there were any problems with the run, because I may need
> to restore files and rerun, etc.
> 
> When I run a job that ALCOBJs on these certain files, they are deallocated
> as soon as my job ends (which is about 7 seconds).
> 
> How is it that I can automate keeping certain users out of certain files or a
> certain library?  I don't need all the users kept out, and I don't need all 
>the
> libraries offlimits.
> 
> Thanks for any suggestions.
> 
> Karen
> kbellecci@osfa.state.la.us
Karen,

    This is very simple, and may not be the best, but if your
application has a CL that everyone calls before entering the
application, then it will work.  You create a data area on your system,
which you set a flag in position 1 that is either a Y or N (you can get
more elaborate if you want).  When you leave at night, or at the start
of your nightly jobs (don't do it as the last job, because if the jobs
don't run your flag won't be set), you set the flag to "N".  Then in the
morning, after you check everything out, you set the flag to "Y". 
Inside your CL to start the application, have it retrieve the data
area.  If the dataarea is set to "Y" then allow access, if it is set to
"N", display a message "System not yet available, please try again in 10
minutes."

HTH 

-- 
Pete Massiello
OS Solutions International 
Phone: (203)-744-7854  Ext 11.
http://www.os-solutions.com
mailto:pmassiello@os-solutions.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.