Customizing PxPlus

START_UP Initialization Program

 

The START_UP initialization program allows for the preloading of variables and/or files, the setting of various PxPlus system parameters, and the implementation of a security system. During the initialization process for an application, PxPlus executes the system start-up program *start.up, which, in turn, calls the user-developed program START_UP, if it exists.

START_UP must be physically located in the Start-In (HWD) directory in order for it to be read during initialization. If it is not defined (in the correct directory), no initialization will be performed. However, an initialization program other than START_UP can be assigned using PVXSTART. See Environment Variables.

Some of the typical uses of a START_UP program include:

Example:

0010 ! Sample START_UP program
0020 PREFIX "PROG/ DATA/"
0030 ERROR_HANDLER "*ERROR"
0040 ADDR "DATCHK"
0050 SET_PARAM 'SZ'=400,'CE','PC'=10
0060 LET %CUSTDB = GFN; OPEN (%CUSTDB) "CUSTDB"
0070 END