This is the syntax for the PROLIB command to add files to a standard procedure library:

Operating system Syntax
UNIX Windows
prolib library-name
  -add file-name[file-name]...
library-name

Specifies the name of the procedure library where you want to add the file.

file-name

Specifies the pathname of the file. You can add a file to a procedure library by specifying the file's absolute or relative pathname.You can add a file to the PROPATH environment variable by specifying the file's absolute pathname or its pathname relative to the current working directory.

When you add a file to a procedure library, the library entry for that file retains the entire pathname. For example:

prolib newlib.pl -add /usr/apps/proc1.r

The pathname /usr/apps/proc1.r appears in the procedure library's table of contents. You can display the library's table of contents with the -list parameter.

When you extract a file from a procedure library, PROLIB copies the file into the directory specified by the pathname (in this example, /usr/apps). See Extract files from a standard procedure library for more information.

If you try to add a file that already exists, PROLIB displays an error message. However, if you specify the -nowarn parameter, PROLIB replaces the existing file. See Replace files in a standard procedure library for more information.