You are here: Development Standards > Routines > General Routines > GENREPL.PUB

# GENREPL.PUB

GENREPL.PUB is a public program used to replace user-defined text found in the current prefix. The CALL/ENTER list contains an array with paths that need to be resolved and searched for user-defined text. These paths generally are the paths from the OSINFO.xxx file.

`0100 ENTER PATH$[ALL]`

Variable | Description
PATH$[ALL] | Array containing multiple paths

GENREPL.PUB looks for and replaces two patterns:

Pattern | Replaced with
%TERM% | Current Terminal ID (Txxx)
%USER% | STBL("USERDIRS")

The global variable STBL("USERDIRS") is built in RMSETUP. It uses values entered on the command line at the operating system prompt. Command line parameter -d is used to tell RMSETUP to use user-defined directories. This feature has not been fully integrated into the final product yet.