Add Prefix to DLFM (ADDPFXDLFM)

The Add Prefix to DLFM (ADDPFXDLFM) command registers a prefix with the DataLink File Manager. This prefix can then be used as a path for storing linked files.

Restrictions:

Parameters

Keyword Description Choices Notes
PREFIX Prefix Values (up to 300 repetitions): Element list Optional, Positional 1
Element 1: Name Character value
SRCFILE Source file Qualified object name Optional, Positional 2
Qualifier 1: Source file Name
Qualifier 2: Library Name, *LIBL, *CURLIB
SRCMBR Source member Name Optional

Prefix (PREFIX)

Specifies one or more prefixes to be registered with the DataLink File Manager. Up to 300 prefixes can be specified.

character-value
Specify a prefix to be registered.

Source file (SRCFILE)

Specifies the source file that will be used to provide the prefixes to be registered.

Note: If a value is specified for this parameter, you must also specify a value for the Source member (SRCMBR) parameter.

Qualifier 1: Source file

name
Specify the name of the source file.

Qualifier 2: Library

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the file. If no library is specified as the current library, QGPL is used.
name
Specify the name of the library to be searched.

Source member (SRCMBR)

Specifies the source file member that contains the prefixes to be registered. Each row in the source member must contain a prefix.

Note: If a value is specified for this parameter, you must also specify a value for the Source file (SRCFILE) parameter.

name
Specify the name of the source file member..

Examples

Registering a Datalink File Manager Prefix

ADDPFXDLFM   PREFIX('/files/datalinks')

This command registers /files/datalinks as a valid prefix for linked files.

Error messages

*ESCAPE Messages

CPF3168
DataLink File Manager (DLFM) command failed.