tips:revmedia:v1i4a12

RTP Series - RTP36

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 AUG 19891.14+EXPERTRTP36

The LOCK processor. If your routines fall over with an "RTP36 VNAV" message check that you have assigned the file variable and id that you are trying to lock, Remember that a file can be locked using the syntax LOCK filevar.

The LOCK processor has a much extended syntax as documented in RevTech's "Technical Bulletin # 2" by Ron Philips (q.v.). The simplest form of the extended syntax is LOCK filevar,recname,action where action is an alpha code having one of the following values

CodeDescription
XExclusive Lock
SShared Lock
XCExclusive Coordinated Lock
SCShared Coordinated Lock

Note that as these codes should be used as codes NOT as literals ie LOCK WC_SRC_FILE%,ID,XC not LOCK WC_SRC_FILE%,ID,"XC". To cope with this extended syntax, the STATUS() variable has been modded so that in addition to the standard 0s and 1s for successful/unsuccessful locks, there also exists a STATUS() value of 2 meaning that an attempt has been made to use an invalid action code E.g. LOCK WC_SRC_FILE%,ID,SZ.

Mr Philips also documents a further extension of the action code whereby groups within a file can be locked, as can overflow frames.

(Volume 1, Issue 4, Pages 6,7)

  • tips/revmedia/v1i4a12.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1