Controlling file locations
M3 PWB controls the physical location of files through the use of environment variables that can have an assigned value. You can use the predefined variable names in the table below to assign physical locations to single or groups of files. The Startup Command File, M3 APP.BAT for Windows controls the set up together with the PMINIT__.DAT file.
The following example of the start up file USMVXAPP11.BAT is located in the System directory:
ECHO OFF 
ECHO ******************************************
      
ECHO *                                        *
      
ECHO *           STARTING M3 APP              *
      
ECHO *           PLEASE WAIT...               *
      
ECHO *                                        *
      
ECHO ******************************************
      
SET PMSIMDIR=C:\Program Files\MvxApp11_2
      
SET PSUI_INIPATH=%PMSIMDIR%\CONTROL 
SET HELP=%PMSIMDIR%\US\HELP;%PMSIMDIR%\US\HELP;
      
SET FID_OTRA=%PMSIMDIR%\CONTROL\PMOTRA.FID
      
SET FID_REGM=%PMSIMDIR%\CONTROL\PMREGM.FID
      
SET
        PSUI_IMAGEPATH=%PMSIMDIR%\IMAGES\CUSTOM;%PMSIMDIR%\IMAGES 
SET BATC=%PMSIMDIR%\Macro 
SET PINI=%PMSIMDIR%\CONTROL 
SET
        PMIN=%PMSIMDIR%\US\PANELS\CUSTOM;%PMSIMDIR%\US\PANELS 
SET
        PMER=%PMSIMDIR%\US\PANELS\CUSTOM;%PMSIMDIR%\US\PANELS 
SET
        PMGE=%PMSIMDIR%\US\PANELS\CUSTOM;%PMSIMDIR%\US\PANELS 
SET
        PANE=%PMSIMDIR%\US\PANELS\CUSTOM;%PMSIMDIR%\US\PANELS 
SET PMSP=%PMSIMDIR%\DATA 
SET DATA=%PMSIMDIR%\DATA 
SET PMSIM_ENVIRONMENT=PMSIM 
SET PMSIMDB_PARAMSQL=%PMSIMDIR%\CONTROL\PARAM.V10
      
SET PSDB_INIPATH=%PMSIMDIR%\CONTROL 
SET PMSIMMI_PARAMMVX=%PMSIMDIR%\CONTROL\PARAM_MI.112
      
SET PSMI_INIPATH=%PMSIMDIR%\CONTROL 
SET PSMI_LOGPATH=%PMSIMDIR%\DATA 
MvxApp.EXE 
ECHO ON 
| Name | Description | 
|---|---|
| PINI | Assigned to the PMINIT__.DAT control file. | 
| PMER | Assigned to the PMERRO__.SKM file containing the panel definition for error and warning message panels. | 
| PMGE | Assigned to the PMGENE__.SKM file containing the panel definition for general panels. | 
| PMIN | Assigned to the PMINIT__.SKM file containing the panel definition for the initial dialog box. | 
| PMMODUL | An environment parameter, that tells M3 PWB which module to
                execute immediately after Startup. For example, if this environment variable is
                defined, then the Main module is omitted and the environment module is started
                automatically. It can be used to execute a batch function directly by specifying
                  SET PMMODUL=BATC in the startup CMD file. | 
            
| PMSP | Assigned to all spool files generated by M3 PWB. | 
| VERS | Defines the initial version of the data that M3 PWB is working on when starting. Can be defined if the version differs from version 01. If the given version does not exist, then version 01 is loaded. | 
To change the physical location of the spool files, change the Startup Command File as follows:
SET PMSP=D:\PMSPOOL Set the path for Spool
      files
You can also define the location of individual data files for a specific version by appending the version number to the 4-character environment variable. If you want to assign a different physical location to data files in new version 22, for example, you must insert this line in the Startup Command File:
SET DATA22=D:\PMTEST\DATA Set the path for
      version 22
You can assign specific paths to individual files. You must change the PMINIT__.DAT file (the file in which the variable DATA is the default name assigned to all data files) to accomplish this. If you assign the new variable name DATX to the order header file, for example, you must add this line to the Startup Command File:
SET DATX=D:\DIRORDH Set the path for order
      header file
The file name is:
PMnameVV.xxx
- "PM" Defined in header for PMINIT__.DAT file.
 - "name" Names defined in PMINIT__.DAT.
 - "VV" Schedule version number.
 - "xxx"
- DAT: Data and control files
 - SPL: Spool files
 - SKM: Panel controls
 - HLP: Help files