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

# GENMPATH.PUB

GENMPATH.PUB is a public program that performs several functions, all related to determing and changing to appliation modification directories.

GET_SET_MOD_PATH:

This entry point will get an appliactions modifications directory and change to it, adding the base application directory to the prefix.

`0050 GET_SET_MOD_PATH:`
`0060 ENTER APP$,MSG$,CH_DIR`

Variable | Description
APP$ | Application ID
MSG$ | Error message returned to calling program
CH_DIR | Set to 1 to set current directory to the modifications directory

Exit Points | Explanation
EXIT | This callpoint does not normally return an error.
EXIT ERR | This callpoint returns untrapped errors if one occurs.

BUILD_COMP_MOD_PATH:

This entry point will take a sepcified path and attempt to find a company specific path on it, if the letters ‘xxx’ exist in the path. If variable will return the correct path if one is found, or blank if no directory is found.

`3005 BUILD_COMP_MOD_PATH:`
`3010 ENTER PATH$`

Variable | Description
PATH$ | Directory to evaluate

Exit Points | Explanation
EXIT | This callpoint does not normally return an error.
EXIT ERR | This callpoint returns untrapped errors if one occurs.