The Road Tech Administrative Tollkit makes extensive use of environment variables.
These variables hold details relating to the local system. Set when setenv.lib scans the host system to identify the platform.
Var | Exp | Description | default |
---|---|---|---|
sysname | Y | System name | {AIX, UNIX_System_V, ... } |
sysver | Y | Version | uname -v |
sysrel | Y | Release | deduced from uname -r |
syskern | Y | Running kernel | N/A |
hostname | Y | N/A | |
adm | Y | System admin files {/usr/adm, /var/adm, ... } | N/A |
rmver | Y | RMcobol version | N/A |
rmlicence | Y | RMcobol licence | N/A |
rrhome | Y | Directory containing users home directories {/u, /home, .... } | |
tmpdir | Y | Application temporary directory. {/tmp, /var/tmp} | |
SENDMAIL | Y | N/A | |
SENDMAIL_MSA | Y | N/A | |
Y | N/A | ||
PAGE | Y | N/A | |
PATH | Y | N/A | |
Y | N/A | ||
Y | N/A |
Set by the system for a user. Valid for AIX and Linux.
Var | Exp | Description |
---|---|---|
HOME | Y | Users home directory. |
LOGNAME | Y | Identifier used to identify the user to the operating system. |
TERM | Y | Users terminal type. |
There are a number of variables that affect the behaviour of the administrative scripts. These are initialized by setenv.lib when it scans the system.
RTadmin is set to the PATH of the base directory containing the administrative programs. Most paths used to locate other items are found relative to this.
Most of the current values are displayed as part of the "Show configuration" option on the System Menu.
Variable | Exp | Purpose | Default |
---|---|---|---|
RTadmin | N | Path to Admin scripts. rrinst must select install and copy to correct target for machine. | |
RTadmin_def | N | Default install directory for RoadTech scripts on current platform | /usr/share/rr85/instbits, /usr/share/Roadtech?, /usr/share/RTadmin? |
RT_Owner | N | User who owns files | rr85 |
RT_Group | N | Group that uses files | rm85 |
RT_Media | N | Display Media menu | TRUE |
RT_Print | N | Display print menu | TRUE |
RT_Mail | N | Display Mail Menu | TRUE |
RT_Cluster | Y | Used to indecate that this server is part of an AIX HACMP Cluster. | FALSE |
RT_CSPOC | N | PATH to CSPOC wrapper. AIX HACMP only. | |
RR_ResourceGroup | N | roadrunner | |
MENU | N | rr displays menu of datasets | |
KILL | N | Kill option from backup | |
REVEAL | N | Un-hide some options |
If it does not exist as you are upgrading from a pre 2003 version, and the option file does not exist. A sample opton file ${RTadmin}/rt.var will be created, when the check configuration option is run from the new scripts.
|
Additional options may be needed if subsystems have been installed at unusual locations.
RR_Dir | |
IL_Dir |
Variable | Exp | Purpose | Default |
---|---|---|---|
CallName | N | Path name under which script was started. | |
ProgName | N | Actual path name of script. | |
RR_Dir | Y | Roadrunner install dir | /usr/rr85, /usr/share/rr85, /usr/share/roadrunner? |
RR_DirDef | N | Default install directory for Roadrunner on current platform. | /usr/rr85, /usr/share/rr85, /usr/share/Roadrunner? |
rrdir | N | Roadrunner install dir Obsolete | |
flagdir | Y | Flag directory | { $tmpdir/rr_flag, ... } |
clonedir | Y | Target directory for clone. | {/rrclone} |
libdir | Y | Source directory for script libraries | $RTadmin/lib |
lib | Y | Base library. | $libdir/base.lib |
LPDEST | N | Default printer | lpdest() |
LogDir | N | ||
PidDir | N | ||
WebDir | N | ||
DATAPATH | Y | Path used to track dataset between sessions | $(<$HOME/.rrdatapath) |
RR_Prog3 | N | As far as I am aware this has only been used, on programming and support servers. |
If it does not exist as you are upgrading from a pre 2003 version, and the option file does not exist a sample opton file ${RR_Dir}/rr.var will be created. When the check configuration option is run from the new scripts.
|
There is provision for an additional per user option file $HOME/bin/rr.var, as far as I am aware this has only been used on development servers.
Thre is no template for this file.
Most are initalized via a call to SetDatapathEnv this function is available to any script, that has loaded setenv.lib.
Variable | Exp | Purpose | Default |
---|---|---|---|
RR_DataPath | N | Path of current dataset | $(<$HOME/.rrdatapath) |
RR_DataSet | N | Name of curent dataset | read from $rrdir/.datapaths |
RR_Prog1 | N | Main program directory | $RR_DataPath/cobs |
RR_Prog2 | N | Update program directory | $RR_DataPath/newcobs |
RR_ProgDat | N | Program related Data SCREENS, MENUS, etc | $RR_DataPath/instbits |
dsflag | Y | Flag name for current dataset | $flagdir/$(echo ${RR_DataPath}|tr -A '/' '_') |
RUNPATH | Y | Search path to programs and program data. | ${RR_ProgDat}:${RR_Prog3}:${RR_Prog2}:${RR_Prog1}:/usr/rmcobol |
RM_Config | N | RM_Cobol configuration file | -c $RR_DataPath/terminfo.cfg |
RM_Report | N | RM_Cobol printer configuration | -x $RR_DataPath/report.cfg |
N | |||
N |
Some variables may be adjusted on a set by set basis, by the use of the dataset dependent config file. $RR_DataPath/dataset.var
This file is created during the initial install, or when the menus are used to initalize a new dataset.
Only applicable to EDI routines using edi.lib.
When called the functions edi_runcobol_import and edi_runcobol_export provided in edi.lib, invoke the configured COBOL progragram, passing it a number of arguments. Thease become part of the Linkage Section, and mimmic the environment set when a user logs in to roadrunner.
|
|
Other EDI variables exist that are used in processing before invoking runcobol. Some of the EDI variables are exported, and made availble in the UNIX environment for the COBOL runtime, or any sub programs it calls.
Variable | Exp | Purpose | Default |
---|---|---|---|
EDI_Customer | Y | Customer name for use in messages and logs. | Customer |
EDI_User | N | Roadrunnner account name to be used by the EDI routine. | EDI |
EDI_Uid | N | Coresponding Roadrunner numeric ID for temp files. | 132 |
EDI_ErrorLevel | N | ? | 9 |
EDI_DisplayFlag | N | ? | N |
EDI_ParamiterMode | N | ? | 1 |
EDI_Platform | N | Computer type. | $sysname |
EDI_Pmap | N | ? | 9999 |
EDI_SubProgram | N | Name os a sub program to call. | RRNOTYET |
EDI_Group | N | System group name. | datalink |
EDI_wdir | N | Working Directory | $HOME/.rtedi |
N |
Relate to calls and routines that Import data to the local COBOL database.
Variable | Exp | Purpose | Default |
---|---|---|---|
EDI_Import_Dir | Y | Current directory during import. | $HOME/edi/in |
EDI_Import_Method | Y | Name of a supported method. | custom |
EDI_Import_Program | N | COBOL progrmam to invoke for the import. | W1EDIIN2 |
EDI_Import_File | Y | edi.xml | |
EDI_Import_Pattern | Y | wild card patern match file names for import. | $EDI_Import_File |
EDI_Import_Host | Y | Host name for network based methods. | ediftp.road-runner.net |
EDI_Import_URL | Y | URL for network based methods | /testxml/testjob.xml |
EDI_Import_Queue | Y | ||
EDI_Import_MailTo | Y | $MailTo | |
EDI_Import_MailCc | Y | $MailCc | |
EDI_Import_FTP_Username | N | ||
EDI_Import_FTP_Password | N | ||
EDI_Import_FTP_Dir | N | ||
EDI_Import_FTP_Mode | N | bin | |
FTP_Import_FTP_List_Cmd | N | ||
EDI_Import_Local_Dir | N | ||
EDI_Import_Pmap | N | "9999" | |
EDI_Import_SubProgram | N | RRNOTYET | |
N |
Relate to calls and routines that Export data to the local COBOL database.
Variable | Exp | Purpose | Default |
---|---|---|---|
EDI_Export_Dir | Y | Current directory during export. | $HOME/edi/out |
EDI_Export_Method | Y | Name of a supported method. | custom |
EDI_Export_Program | N | COBOL progrmam to invoke for the export. | W1EDIIN2 |
EDI_Export_File | Y | edi.xml | |
EDI_Export_Pattern | Y | wild card patern match file names for export. | $EDI_Export_File |
EDI_Export_Host | Y | Host name for network based methods. | www.roadrunner.uk.com |
EDI_Export_URL | Y | URL for network based methods | /testxml/testjob.xml |
EDI_Export_Queue | Y | ||
EDI_Export_MailTo | Y | $MailTo | |
EDI_Export_MailCc | Y | $MailCc | |
EDI_Export_FTP_Username | N | ||
EDI_Export_FTP_Password | N | ||
EDI_Export_FTP_Dir | N | ||
EDI_Export_FTP_Mode | N | bin | |
FTP_Export_FTP_List_Cmd | N | ||
EDI_Export_Local_Dir | N | ||
EDI_Export_Pmap | N | "9999" | |
EDI_Export_SubProgram | N | RRNOTYET | |
N |
Variable | Exp | Purpose | Default |
---|---|---|---|
IL_Owner | N | ||
IL_Group | N | ||
IL_dir | N | ||
N |