EGL library VGLib

The VGLib functions are shown below:

System function/Invocation Description
result = compareBytes (target, targetSubIndex, targetSubLength, source, sourceSubIndex, sourceSubLength) Compares two values and returns a value (-1, 0, or 1) to indicate which of the two is greater
result = concatenateBytes (target , source Concatenates target and source; places the new value in target; and returns an integer that indicates whether target was long enough to contain the new value
connectionService()(userID, password, serverName [, product, release [, connectionOption]]) Provides two benefits:
  • Allows a program to connect or disconnect to a database at run time.
  • Receives (optionally) the database product name and release level. You can use the received information in a case, if, or while statement so that runtime processing is dependent on characteristics of the database.
copyBytes (target, targetSubIndex, targetSubLength, source, sourceSubIndex, sourceSubLength) Copies one value to another
result = getVAGSysType()() Identifies the target system in which the program is running.
VGTDLI() (func, pcbindex, parms...) Invokes a DL/I function directly using the CBLTDLI interface.

Related reference
EGL library DLILib
AIBTDLI()
VGTDLI()

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.