ObjUnlck

page d'accueil
Boite à outils

Cette page a été mise à jour le 14 septembre 2009
Contact

Welcome page
Tools box

Versionning 

last version : How to upload to my 400

CHGPFM FILE(JPLTOOLS) MBR(OBJUNLCK ) SRCTYPE(CMD ) EXPDATE(*NONE) SHARE(*NO) TEXT('tuer les travaux qui verrouillent un objet ') 
CHGPFM FILE(JPLTOOLS) MBR(OBJUNLCKC ) SRCTYPE(CLLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('tue les travaux qui verrouillent un objet ')
Déverrouiller un objet.

Qui n'a pas eu besoin un jour d'installer d'urgence une modification ? Ou besoin de recompiler un objet que tout le monde utilise ? Dans ce genre de situation, la méthode est souvent celle ci :

  • prévenir les utilisateurs d'une coupure, mettons à 12h15
  • prévenir encore 15 minutes avant, en rappelant de bien fermer ses sessions
  • à 12h20, constater que l'objet visé est verrouillé par 50 utilisateurs. La moitié est encore en réunion, l'autre moitié est partie déjeuner.
  • Il ne reste plus qu'à tuer tous ces travaux un par un

Cet outil se charge de la besogne : il repère les travaux qui verrouillent un objet, détermine s'ils doivent être suicidés, et assassine les coupables.

Il sait distinguer (type de travail)

  • An autostart job
  • A batch job
  • An interactive job
  • A subsystem monitor job
  • A spooled reader job
  • A system job
  • A spooled writer job
  • The SCPF system job

Il sait distinguer (sous-type de travail)

  • No sub-type
  • an immediate job
  • started with a PSR*
  • an AS/400 Advanced 36 server
  • a prestart job
  • A print driver job
  • A system/36 MRT job
  • Alternate spool user
Unlock an object. 

Who didn't have need one day to install with emergency a modification? Or need to recompil an object that everybody uses? In this kind of situation, the method is often the same : 

  • warn the users of a service cut, let's say at 12:15 
  • warn again 15 minutes before, while recalling to really close their sessions
  • At 12h20, note that the aimed object is locked by 50 users. Half is again in meeting, the other half left for lunch. 
  • You now have to kill all these works one by one

This tool is in charge of this task : it marks the works that lock an object, determine if they must participate to the mass suicide, and murder the guilty parties. 

It knows how to distinguish (type of work) 

  • An autostart job
  • A batch job
  • An interactive job
  • A subsystem monitor job
  • A spooled reader job
  • A system job
  • A spooled writer job
  • The SCPF system job

He/it knows how to distinguish (subtype of work) 

  • No sub-type
  • an immediate job
  • started with a PSR*
  • an AS/400 Advanced 36 server
  • a prestart job
  • A print driver job
  • A system/36 MRT job
  • Alternate spool user

The source code is provided as an open source tool under the GNU General Public License, version 2.  In summary, this license specifies:

By clicking the download link you acknowledge and agree to the terms of the license.

Download the (zipped) SAVF containing the JPLTOOLS : the source file, the message file, the bnddir

THIS TOOLBOX IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROVIDER OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS TOOLBOX, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.