appendPJSPathlist

appendPJSPathlist

  • Available since Profound.js 7.9.0;

  • Applicable to Profound.js running on IBM i machines, including in Genie.

Description

By default – when the Directory parameter is omitted – a call to PJSCALL searches for objects over the entries in the library list of the IBM i job that PJSCALL runs in.

The appendPJSPathlist option changes that behavior. When it is set to true, the entries in the instance’s pathlist are searched before the search continues to the job’s library list. If a module exists in the Profound.js pathlist, it is found and called there, and no library list entries are searched.

Usage

Add appendPJSPathlist to config.js and set it to true:

appendPJSPathlist: true

Example

With the following pathlist in config.js:

pathlist: [ "dir1", "dir2", "dir3", "moddir" ]

This call:

PJSCALL MODULE(MYMODULE)

results in mymodule being searched for in dir1, dir2, dir3, and moddir, and only then in the job’s library list if it was not found in any of the pathlist directories.

For more information on the pathlist setting, see pathlist.

For information on how to modify this setting, see Configuration File.