Work with Object Links (WRKLNK)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Object Links (WRKLNK) command shows a list of names of specified objects in directories and options to work with the objects.

Restrictions:

  1. To perform operations on the objects, the user must have use (*USE) authority to the command used by the operation, and the appropriate authority to the objects on which the operation is to be performed.

The authority requirements for this command are complex with respect to file systems, object types, requested operations etc.. Therefore, see the iSeries Security Reference, SC41-5302 book for information about the required authorities for this command.

For more information about integrated file system commands, see the Integrated file system information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.

Top


 

Parameters

Keyword Description Choices Notes
OBJ Object Path name, * Optional, Positional 1
OBJTYPE Object type *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, *SRVPGM, *SSND, *STMF, *SVRSTG, *SYMLNK, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST Optional
DETAIL Detail *PRV, *NAME, *BASIC, *EXTENDED Optional
DSPOPT Display option *PRV, *USER, *ALL Optional

Top

 

Object (OBJ)

Specifies which objects are shown.

*

All objects in the current directory are displayed.

object-path-name

Specify the name of the object or a pattern to match the name(s) of the object(s) 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 concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.

Top

 

Object type (OBJTYPE)

Specifies the type of objects to display.

*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

Specify the type of object matching the name pattern that is 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 concepts and reference topic in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.

Top

 

Detail (DETAIL)

Specifies how much information is to be displayed on the Work with Object Links (WRKLNK) list.

*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 Display Object Links (DSPLNK) command.

*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 show more information about symbolic links and an additional option is displayed to work with hard or symbolic links.

Top

 

Display option (DSPOPT)

Specifies whether to display PC system and hidden objects.

*PRV

The same value is used for this parameter as the previous time the user ran this command. If this command has not been used before, *USER is used.

*USER

The PC system and the hidden objects are not displayed. Objects beginning with a period (.) are not shown unless the specified pattern begins with a period (.).

*ALL

All objects, including the PC system and hidden objects, are displayed. Objects beginning with a period (.) are shown (with asterisk (*) specified for the pattern) including the directory (.) and parent directory (..) entries.

Top


 

Examples

Example 1: Working with an Object Link

 WRKLNK   OBJ('X/PAY')

This command displays the Work with Object Links panel. This panel shows a list of names of objects in a directory and provides options for performing operations on those objects. In this example, the object's name is PAY and is located in directory X in the current directory.

Top


 

Error messages

*ESCAPE Messages

CPF9899

Error occurred during processing of command.

CPFA085

Home directory not found for user &1.

CPFA0A7

Path name too long.

CPFA0A9

Object not found. Object is &1.

Top