HP3000-L Archives

December 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jerry Fochtman <[log in to unmask]>
Reply To:
Jerry Fochtman <[log in to unmask]>
Date:
Fri, 15 Dec 2000 07:29:04 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
At 05:46 PM 12/14/00 -0600, you wrote:
>How can we tell, using COBOL or CI functions, what mode an already open
>database was opened in?  And if more than one process has the database open,
>what mode each process used.


DBUTIL shows you this:

    >>show simp.tjtest users
   For database SIMP.TJTEST

     PIN PATH     EXECUTING PROGRAM      JOBNUM MODE
     --- ---- -------------------------- ------ ----
      69 1    QUERYNM.PUB.SYS            #S4      5


You could route the output from DBUTIL to a file then parse the
file looking for the information.

Another possible option is to use the AIFFILEGGET and retrieve the
file access options (5009) and use these to determine the open mode
of the rootfile.  This may require PM, as the file is a PRIV file.

ATOM RSS1 RSS2