WRKPFDL (Work with Physical File DataLinks)

WRKPFDL Command syntax diagram

 

Purpose

The Work with Physical File DataLinks (WRKPFDL) command can be used to show a display from which you can reconcile links or display link pending DataLinks for those files that have at least one field with the DataLink attribute of FILE LINK CONTROL. You can work with all physical files that contain DataLinks, a subset of physical files or a specified physical file.

 

Required Parameters

FILE
Specifies the physical file with which you can work with DataLinks. The physical file must have at least one field with the DataLink attribute of FILE LINK CONTROL.

The name of the physical file can be qualified by one of the following library values:

*LIBL: All libraries in the job's library list are searched until the first match is found.

*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.

*ALL: All libraries in the system, including QSYS, are searched.

library-name: Specify the name of the library to be searched.

*ALL: All physical files that have DataLinks are shown.

physical-file-name: Specify the name of a physical file that contains DataLink fields.

 

Optional Parameters

DTALNK
Specifies the set of DataLinks you are showing.

*ALL: All DataLinks given the FILE information are shown.

*LNKPND: The DataLink files that are in link pending are shown.

*LNK: The DataLink files that are correctly linked (not in link pending) are shown.

Example for WRKPFDL

WRKPFDL   FILE(ADMN/*ALL)  DTALNK(*LNKPND)

This command shows a list of all physical files in the ADMN library that are in link pending status.

Error messages for WRKPFDL

*ESCAPE Messages

CPF9809
Library &1 cannot be accessed.
CPF9810
Library &1 not found.
CPF9812
File &1 in library &2 not found.
CPF9820
Not authorized to use library &1.
CPF9822
Not authorized to file &1 in library &2.