Work with PF DataLinks (WRKPFDL)

The Work with Physical File DataLinks (WRKPFDL) command can be used to show a display from which you can reconcile or display physical file datalinks. You can work with the datalinks that are defined for all physical files or a specified physical file.

Parameters

Keyword Description Choices Notes
FILE File Qualified object name Required, Positional 1
Qualifier 1: File Name, *ALL
Qualifier 2: Library Name, *LIBL, *CURLIB, *ALL
DTALNK DataLinks *ALL, *LNKPND, *LNK Optional, Positional 2

File (FILE)

Specifies the physical file for which you are showing DataLinks.

This is a required parameter.

Qualifier 1: File

*ALL
All physical files that have datalink columns defined as FILE LINK CONTROL are shown.
name
Specify the name of the physical file.

Qualifier 2: Library

*LIBL
All libraries in the library list for the current thread are searched. All objects in these libraries with the specified object name are shown.
*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 on the system are searched.
name
Specify the name of the library to be searched.

DataLinks (DTALNK)

Specifies which datalinks you are showing.

*ALL
All datalinks defined with FILE LINK CONTROL are shown.
*LNKPND
Datalinks which having pending links are shown.
*LNK
Datalinks which are currently linked are shown.

Examples

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

*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.