An EXIT program must be an executable resulting from the generation of a batch or interactive VADELIA program.
It has a single parameter: an alphanumeric string up to 256 characters long.
Example EXIT program parameter declaration:
ALPHA(256) |
ParamFile |
|
PARAM |
ParamFile |
/* EXIT program call parameter |
This parameter contains the full name (path and name) of the parameter file, i.e. of the data file generated by the correction validation process.
It is used in calls to the functions of the PgExTool dll, which are used to work with the data contained in the parameter file.
Important technical notes:
- In EXIT programs, the PgExTool dll must already be loaded (using the LOAD_DLL instruction) at the beginning of the program, and still be loaded when the functions it contains are called.
- Like all file names with 32-bit Windows operating systems, the parameter file name can contain spaces; consequently, this name must be enclosed between quotes whenever it is used in a DOS command line (for example in the EXECUTE_CMD instruction).
- The parameter file is cleared by the validation procedure as it returns from running each EXIT program. Therefore, if you run asynchronous processes from an EXIT program, they must not manipulate this parameter file.
Click below for further information about:
the parameter file,
the LOAD_DLL 4GL instruction,
the EXECUTE_CMD 4GL instruction.