Command reference / ifs

WRKLNK

Work with Object Links

Shows a list of names of specified objects in directories, with options to work with the objects.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 1.

Restrictions

Parameters

OBJ Object

Specifies which objects are shown: a path name or a pattern (* matches any characters, ? matches one character) to match object names. Qualified or pattern path names must be enclosed in apostrophes.

Type
*CHAR
Required
No
Default
*
Length
5000
Case
Mixed case
*
All objects in the current directory are displayed.

OBJTYPE Object type

Specifies the type of objects to display. Only objects whose names match the OBJ pattern are shown.

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 names match the OBJ pattern are displayed.
*ALLDIR
All directory types (DIR, LIB, FLR, database FILE) are displayed.

DETAIL Detail

Specifies how much information is shown on the Work with Object Links list.

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

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

*PRV
The same information as the previous use of this command or DSPLNK is shown; *BASIC is used if neither has been used.
*NAME
Only the name is displayed.
*BASIC
The name is displayed with the type, type attribute and text.
*EXTENDED
Adds extended symbolic-link type information and an option to work with hard or symbolic links.

DSPOPT Dspopt

Specifies whether PC system and hidden objects are displayed.

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

Allowed values: *PRV, *USER, *ALL

*PRV
The same value as the previous use of this command is used; *USER if the command has not been used before.
*USER
PC system and hidden objects are not shown; names beginning with a period are hidden unless the pattern begins with a period.
*ALL
All objects, including PC system and hidden objects, are displayed.

Examples

WRKLNK OBJ('X/PAY')

Displays the Work with Object Links panel for object PAY in directory X under the current directory, with options to operate on it.

IBM command documentation

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