Consultor Eletrônico



Kbase 659: DOS environment variables
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   06/04/2001
INTRODUCTION:
=============

This Product Services Technical Support Library entry explains how
to set system variables used by PROGRESS in a DOS environment.


WHY YOU'LL NEED TO DO THIS:
===========================

To make PROGRESS function on a DOS machine.

Environment Variables are system variables used to tailor the DOS
working environment. Whenever you want to see the values of these
variables enter the following command:

SET

Set environment variables in DOS with this syntax:

SET <environment variable>=<value>
For example: SET DLC=C:\DLC

Running PROGRESS requires that you set the DOS PATH and PROGRESS
specific environment variables. You can edit your DOS AUTOEXEC.BAT file to set up these environment variables automatically each time that a user logs into the system, or you can set them at the DOS command line as shown previously.


Table 1 provides information on the environment variables that you
need to set in order to run your PROGRESS product on a DOS operating
system.

Table 1: Environment Variables PROGRESS Uses in DOS
____________________________________________________________________
| | | |
| Variable | Description | Defaults/Setting Variables |
| Name | | |
|____________|_______________________|_______________________________|
| | | |
| DLC | Full name of the | Default: C:\DLC |
| | PROGRESS software | |
| | directory | Setting: SET DLC=C:\DLC |
|____________|_______________________|_______________________________|
| | | |
| DLCFT | Full name of the | Default: C:\DLCFT |
| | PROGRESS FAST TRACK | |
| | software directory. | Setting: SET DLCFT=C:\DLCFT |
|____________|_______________________|_______________________________|
| | | |
| PATH | Directories DOS | Should include directory where|
| | searches to find | you installed PROGRESS. For |
| | any commands you give | example: |
| | such as "dir" or "pro"| |
| | | SET PATH=C:\;C:\DLC;C:\DOS |
|____________|_______________________|_______________________________|
| | | |
|*PROMSGS | Full name of PROGRESS | Default: C:\DLC\PROMSGS |
| | error messages file. | |
| | | SET PROMSGS=C:\DLC\PROMSGS |
|____________|_______________________|_______________________________|
| | | |
| PROPATH | Directories PROGRESS | SET PROPATH=.;C:\DLC |
| | searches for PROGRESS | |
| | procedures. | The period indicates that it |
| | | will search your current |
| | | directory and then the DLC |
| | | directory. |
|____________|_______________________|_______________________________|

* Most PROGRESS products set these variables internally, so you do
not need to set them prior to starting PROGRESS.

The environment variables that must be set for each PROGRESS
product as well as sample default setting are shown in Table 2

Table 2: Sample DOS Environment Variable Settings For
PROGRESS Products
____________________________________________________________________
| | |
| PROGRESS Product | Environment Variable Settings |
|______________________|_____________________________________________|
| | |
| PROGRESS Application | DLC=C:\DLC |
| Development System | DLCFT=C:\DLCFT |
| (PADS) | DLCTDA=C:\DLCTDA (optional) |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCFT;C:\DLCTDA |
| | PROPATH=.;C:\DLC;C:\DLCFT;C:\DLCTDA |
|______________________|_____________________________________________|
| | |
| PROGRESS | DLC=C:\DLC |
| 4GL/RDBMS | DLCTDA=C:\DLCTDA (optional) |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCTDA |
| | PROPATH=.;C:\DLC;C:\DLCTDA |
|______________________|_____________________________________________|
| | |
| | |
| PROGRESS | DLC=C:\DLC |
| Query/Run-Time | DLCFT=C:\DLCFT (optional) |
| Query/Report | |
| | PATH=%PATH%;C:\DLC;C:\DLCFT |
| | PROPATH=.;C:\DLC;C:\DLCFT |
|______________________|_____________________________________________|
| | |
| PROGRESS | DLC=C:\DLC |
| Run-Time | DLCFT=C:\DLCFT (optional) |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCFT |
| | PROPATH=.;C:\DLC;C:\DLCFT |
|______________________|_____________________________________________|
| | |
| PROGRESS | DLC=C:\DLC |
| FAST TRACK | DLCFT=C:\DLCFT |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCFT |
| | PROPATH=.;C:\DLC;C:\DLCFT |
|______________________|_____________________________________________|
| | |
| PROGRESS | DLC=C:\DLC |
| QUERY/REPORT | DLCFT=C:\DLCFT (optional) |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCFT |
| | PROPATH=.;C:\DLC;C:\DLCFT |
|______________________|_____________________________________________|
| | |
| TEST DRIVE | DLC=C:\DLC |
| | DLCFT=C:\DLCFT |
| | DLCTDA=C:\DLCTDA |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCTFT;C:\DLCTDA |
| | PROPATH=.;C:\DLC;C:\DLCFT;C:\DLCTDA |
|______________________|_____________________________________________|
| | |
| | |
| DEVELOPER'S TOOLKIT | DLC=C:\DLC |
| | DLCTK=C:\DLCTK |
| | |
| | PATH=%PATH%;C:\DLC;C:\DLCTK |
| | PROPATH=.;C:\DLC;C:\DLCTK |
|______________________|_____________________________________________|

The following examples describe typical problems that occur when you
set your environment variables incorrectly and attempt to start or run
PROGRESS products.

Table 3: Sample PROGRESS Error Messages when DOS Variables not set
_____________________________________________________________________
| |
| Situation Error Message Problem Fix |
|____________________________________________________________________|
| |
| Starting a |
| PROGRESS Product |
| |
| pro <dbname> pro: not found" Your PATH variable Add the DLC |
| does not include directory |
| drive mydrive "drive: not found" the PROGRESS start to your PATH |
| up script listed. variable. |
| |
| pro dbname "unable to open You have not set Set the DLC |
| promsgs" the DLC variable variable as |
| described |
| on page 3. |
|____________________________________________________________________|
| |
| In PROGRESS, |
| try to "RUN" |
| |
| RUN myproc.p. "myproc.p not found" Your PROPATH Add the dir- |
| variable does ectory where |
| RUN ft.p. "ft.p : not found" not include the the <proc>.p |
| directory where procedure is |
| <proc>.p is to your |
| located. PROPATH. |
|____________________________________________________________________|

Table 4 on the following page lists the additional DOS environment
variables that are required to start and run PROGRESS Version 6.

Table 4: Additional DOS Environment Variables for PROGRESS Version 6
____________________________________________________________________
| | | |
| Variable | Description | Defaults/Setting Variables |
| Name | | |
|____________|_______________________|_______________________________|
| | | |
| PROCFG | Full name of your | Default: C:\DLC\PRO.CFG |
| | PROGRESS product's | |
| | configuration file. | Setting: SET PROCFG= |
| | | C:\DLC\PRO.CFG|
|____________|_______________________|_______________________________|
| | | |
| PROEXE | Full name of your | Default: C:\DLC\_PROGRES |
| | executable PROGRESS | |
| | file. | Setting: SET PROEXE= |
| | | C:\DLC\_PROGRES.EXE |
|____________|_______________________|_______________________________|
| | | |
| PROLOAD | If installed, the | Default: C:\DLCLOAD |
| | full pathname of the | |
| | PROBUILD product's | Setting: SET PROLOAD= |
| | directory. | C:\DLCLOAD |
|____________|_______________________|_______________________________|
| | | |
| PROSRV | Full pathname of your | Default: C:\DLC\_MPROSRV |
| | PROSERVE file. | |
| | | Setting: SET PROSRV= |
| | | C:\DLC\_MPROSRV.EXE |
|____________|_______________________|_______________________________|
| | | |
| PROOVL | Full pathname of your | SET PROOVL=E:\OVLDIR ** |
| | directory where the | |
| | .ovl file is. You | ** E:\OVLDIR is a virtual |
| | can set up a VDISK in | disk which is resident |
| | memory to improve | in memory to improve |
| | performance. See the | performance. You need |
| | Sys. Admin. I & DOS | to set the VDISK command |
| | Documentation for more| in your config.sys file. |
| | Details | |
|____________|_______________________|_______________________________|

REFERENCES TO WRITTEN DOCUMENTATION:
===================================

PROGRESS Installation Notes
Pocket PROGRESS
System Administration and Reference
Progress Software Technical Support Note # 659