D3 and mvBase

 View Only

 Reading item locks from .NET

Gareth Cairncross's profile image
PARTNER Gareth Cairncross posted 03-22-2023 05:49

Morning all

Is there a mechanism which allows me to list the full account name, file name, and item within locks? The issue I am having with LIST-LOCKS is the masking to 19 characters for the account and file names. In most of my cases, 19 characters is not long enough to display the full detail. I need to be able to programmactically read the line in order to programmatically run "UNLOCK-ITEM ACCOUNTNAME,FILENAME, ITEM".
Additionally, we run Windows and Linux D3, with .NET front-ends, so I need to be able to use one .NET codebase to unlock items on Windows and D3 Linux. It appears that each environment's display is different.
In Windows, the filename is truncated due to the length of the account name, and in Linux, it does not display the account name.

Windows:
FSI Filename        PIB#  Lvl  Type  Item-id             Token
FMCG.DNFDATA,mpcont   12    0  VME   008845              147263604
FMCG.DNFDATA,mpdebt   13    0  VME   COM006              60563220

Linux:
Item Locks          PIB#  Lvl  Hash  Item-id              Filename
  869426 (000D4432)    2   0 005BAAF6  1I4214               MPPINV
  635346 (0009B1D2)    5   0 00B6AB01  LIT001               MPDEBTOR


Brian Cram's profile image
ROCKETEER Brian Cram

I had that same trouble a long time ago. I ended up copying dm,bp, list-locks to a different name and changing the column widths. I haven't looked to see what D3 Linux does to get the file name, but I'll bet it has something to do with the FOF#.