FUNCTION CheckWhoHasLock(table$, message$)
|
FUNCTION CheckWhoHasLock(table$, message$, docKey$)
Function checks the SY_LockFileInfo table and returns a formatted message about the user and task that last locked the given table or table & key.
|
| Parameter | Description |
| table$ |
[input, string] Name of the table that is locked. |
| message$ |
[output, string] Returned formatted message to be displayed, that contains the user name and task, that has the table locked. |
| docKey$ |
[input, string] {Optional} Specific document key that is locked. |
|
|
|
| Value | Description |
| retSUCCESS(1) |
If a record was found in the SY_LockFileInfo table and a message is returned. |
| retFAILURE(0) |
If a record was not found in the SY_LockFileInfo table, no message will be returned. |
|
FUNCTION CreateLockInfo(table$)
|
FUNCTION CreateLockInfo(table$, docKey$)
|
FUNCTION CreateLockInfo(table$, docKey$, channel)
|
FUNCTION CreateLockInfo(table$, docKey$, channel, comp$, user$, task$)
Creates/updates record for the table/documentkey combination that is locked. It records the current user, company and task within the record in the SY_LockFileInfo table.
|
| Parameter | Description |
| table$ |
[input, string] Name of the table being locked. |
| docKey$ |
[input, string] {optional} Specific document key that is locked within the table given. If blank, indicates that table is locked. |
| channel |
[input, fileHandle] {optional} Channel that the lock file is currently open on |
| comp$ |
[input, string] {optional} company code that is locking the table/key combination |
| user$ |
[input, string] {optional} user logon that is locking the table/key combination |
| task$ |
[input, string] {optional} task name of the task that is locking the given table/key combination |
|
| Returns |
Always returns retSUCCESS(1) |
|
FUNCTION RemoveLockInfo()
|
FUNCTION RemoveLockInfo(table$)
|
FUNCTION RemoveLockInfo(table$, docKey$)
|
FUNCTION RemoveLockInfo(table$, docKey$, channel)
Removes Lock information after the record/table lock is released, if no arguments are given then all the information for the current workstation + processID will be removed.
|
| Parameter | Description |
| table$ |
[input, string] {optional} Name of the table being locked. |
| docKey$ |
[input, string] {optional} Specific document key that is locked within the table given. If blank, indicates that table is locked. |
| channel |
[input, fileHandle] {optional} Channel number the lock file that is being closed was open on |
|
| Returns |
[integer] number of records removed |
|
FUNCTION LOCAL OpenTable(fileName$, path$, options, wdxFlag, opt$, ddfTable$)
|
FUNCTION LOCAL OpenTable(fileName$, path$, options, wdxFlag, opt$)
|
FUNCTION LOCAL OpenTable(fileName$, path$, options, wdxFlag)
|
FUNCTION LOCAL OpenTable(fileName$, path$, options)
|
FUNCTION LOCAL OpenTable(fileName$, path$)
|
FUNCTION LOCAL OpenTempFile(baseName$, keyDef$, fileIolist$, recSize, useGlobalChan, useMemoryFile)
|
FUNCTION LOCAL OpenTempFile(baseName$, keyDef$, fileIolist$, recSize, useGlobalChan)
|
FUNCTION LOCAL OpenTempFile(baseName$, keyDef$, fileIolist$, recSize)
|
FUNCTION LOCAL OpenTempFile(baseName$, keyDef$, fileIolist$)
|
FUNCTION LOCAL OpenTempFile(baseName$, keyDef$)
|
FUNCTION LOCAL OpenTempFile(baseName$)
Create and open temporary file on disk as alternate to using a memory file (created in user TEMP folder); if temporary file cannot be created/opened, a memory file will be used instead
|
| Parameter | Description |
| baseName$ |
[input, string] Base name to use for file; will add company code and a timestamp to create actual name for temporary file |
| keyDef$ |
[input, string] {optional} Key definition to use when creating the temporary file |
| fileIolist$ |
[input, string] {optional} IOLIST to use when opening the temporary file |
| recSize |
[input, int] {optional} Record size to use when creating the temporary file; for memory files this will be the BSZ value |
| useGlobalChan |
[input, boolean] {optional} When set to isTRUE (1) the file will be opened on a global channel |
| useMemoryFile |
[input, boolean] {optional} When set to isTRUE (1) amemory file will be used instead of a file on disk |
|
| Returns |
fileHandle if file is successfully created and opened; otherwise returns zero |
|