GET_SYNC
Script Function: Queries the current condition or value of a Sync object.
Syntax
GET_SYNC (Sync, Type)
Syntax |
Description/Format |
---|---|
Sync |
Name of a Sync object whose current condition or value should be determined |
Type |
Specification of whether current condition or current value should be
determined Allowed values: "STATE" and "VALUE" |
Return codes |
---|
Current condition of the Sync object |
This script function supplies the current settings of a Sync object. These settings are also found in the Attributes page of the object.
Example
:SET &ADMIN# = GET_SYNC("DB.STATE","STATE")
:IF &ADMIN# = "EXCLUSIVE"
: PRINT "The administrator
job is currently exclusively using the database."
:ENDIF
:SET &RET# = GET_SYNC("DB.STATE","VALUE")
:IF &RET# = 0
: PRINT "No job is currently
using the database."
:ELSE
: PRINT "&RET# jobs are
currently using the database."
:ENDIF
See also:
seealso