Command reference / ifs

DSPLNK

Display Object Links

The Display Object Links (DSPLNK) command shows a list of names of specified objects in directories and options to display information about the objects. For more information about integrated file system commands, see the Integrated file system topic collection in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

OBJ Object

Specifies which objects are displayed.

Type
*CHAR
Required
No
Default
*
Length
5000
Case
Mixed case
*
All objects in the current directory are displayed.
object-path-name
Specify the path name of the object or a pattern to match the name of the object to be shown. The object path name can be either a simple name or a name that is qualified with the name of the directory in which the object is located. A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters and a question mark (?) matches a single character. If the path name is qualified or contains a pattern, it must be enclosed in apostrophes. For more information on specifying path names, refer to "Object naming rules" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

OUTPUT Output

Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

*
The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.
*PRINT
The output is printed with the job's spooled output.

OBJTYPE Object type

Specifies the object type to be displayed. To see a complete list of object types when prompting this command, position the cursor on the field for this parameter and press F4 (Prompt). For a description of the object types, see "Object types" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

Type
*CHAR
Required
No
Default
*ALL
Length
8
Case
Uppercase

Allowed values: *ALL, *ALLDIR, *ALRTBL, *AUTL, *BLKSF, *BNDDIR, *CFGL, *CHTFMT, *CHRSF, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DDIR, *DEVD, *DIR, *DOC, *DSTMF, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FIFO, *FILE, *FLR, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *MBR, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *M36, *M36CFG, *NODGRP, *NODL, *NTBD, *NWID, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *SBSD, *SCHIDX, *SOCKET, *SPADCT, *SQLPKG, *SQLUDT, *SQLXSR, *SQL2XSR, *SRVPGM, *SSND, *STMF, *SVRSTG, *SYMLNK, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST

*ALL
All objects whose name matches the pattern specified in the Object (OBJ) parameter are displayed.
*ALLDIR
All directory types (DIR, LIB, FLR, database FILE) are displayed.
object-type
Specifies the object type to be displayed.

DETAIL Detail

Specifies the information to be displayed on the Display Object Links (DSPLNK) list.

Type
*CHAR
Required
No
Default
*PRV
Length
9
Case
Uppercase

Allowed values: *PRV, *NAME, *BASIC, *EXTENDED

*PRV
The same information that was displayed when the user ran this command previously is shown. The value *BASIC is used if the user has not used this command or the Work with Object Links (WRKLNK) command before.
*NAME
Only the name is displayed.
*BASIC
The name is displayed along with the type, type attribute, and text.
*EXTENDED
In addition to the basic information noted above, the type field is extended to display more information about symbolic links and an additional option is available to display hard or symbolic links.

DSPOPT Dspopt

Specifies whether to show PC system and hidden objects.

Type
*CHAR
Required
No
Default
*PRV
Length
5
Case
Uppercase

Allowed values: *PRV, *USER, *ALL

*PRV
The same value is used for this parameter as the previous time the command was run by this user. If this command has not been used before, *USER is used.
*USER
The PC system and hidden objects are not shown. Objects beginning with a period (.) are not displayed unless the specified pattern begins with a period (.).
*ALL
All objects are shown, including the PC system and hidden objects. Objects beginning with a period (.) are displayed (with asterisk (*) specified for the pattern) including the directory (.) and the parent directory (..) entries.

Examples

DSPLNK OBJ('X/PAY')

This command displays the object PAY located in directory X in the current directory.

IBM command documentation

Generated from os/cl/catalog/DSPLNK.json and os/cl/help/DSPLNK.json.