Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Check Out Object (CHKOUT) command checks out an object. A user profile is used to determine who is checking out the object.
When an object is checked out, other users can read and copy the object. Only the user who has the object checked out can change the object until it is checked in (see the Check In Object (CHKIN) 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.
Restrictions:
Top |
Specifies the name of the object to check out or a pattern for multiple objects.
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 |
Example 1: Checking an Object Out
CHKOUT OBJ('MYDIR/FILE1')
This command checks out FILE1 in the directory, MYDIR, to the job's user profile owner.
Top |
*ESCAPE Messages
Top |