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
- To perform operations on the objects, the user must have *USE authority to the command used by the operation, plus the appropriate authority to the objects operated on.
- Authority requirements are complex and vary by file system, object type and operation; see the IBM i Security Reference (SC41-5302).
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.
*- 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.
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.
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.
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.
Generated from os/cl/catalog/WRKLNK.json and os/cl/help/WRKLNK.json.