ADXTLK

Contents

adxtlk determines the filename of the locks.

 

Class, Type, and Dimension

[S]adxtlk(254) Char

 

Examples

# Extracted from an APL.ini file
[S]adxtlk = "APLLCK"

 

Description and Comments

adxtlk is an Adonix system variable of the Char type, which sets the name of the table used for locks on symbols. The value of adxtlk must be an OBJect_name describing the table. The table will be in the current application.

adxtlk is set to "APLLCk" by the APL.INI file when Adonix is launched.

 

Remarks

This table is called APLLCK as a standard, and its abbreviation is ALK. This is its structure:

Field Name

Field Type

Dimension

Comment

LCKSYM

35 Alphanumeric

1

Symbol Name

LCKIND

Short Integer

1

Index

LCKPID

Long Integer

1

Process ID

LCKFLG

Description

1

Transaction Flag

A primary LCKCLE key, without any homonyms, is defined by LCKSYM+LCKIND.

A secondary PIDFLG key, with homonyms, is defined by LCKPID+LCKFLG.

The LCKSYM field allows you to concatenate a filename (12 characters) with a "code" in order to lock any record of a table differently than by Readlock.

The LCKPID field contains the UNIX process number of the Adonix session that owns the lock.

The LCKFLG field can have one of two values:

·         0  meaning that the lock was generated outside of a transaction.

·         1 meaning that it was generated inside a transaction.

Refer to the programming manual for any information on locks and - in particular - symbol locks.

 

Associated Errors

No associated error

 

Associated Keywords

     Adxtct - Adxtms - Adxpid

CONTENTS


Copyright © Sage 1999 - 2007