Check In Object (CHKIN)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Check In Object (CHKIN) command checks in an object that had previously been checked out.

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:

  1. To check in an object that the user has checked out, the user must have write (*W) authority to the object.

  2. To check in an object that someone else has checked out, the user must own the object or have one of the following:

    • All (*ALL) authority to the object

    • All object (*ALLOBJ) special authority

  3. The user must have execute (*X) authority to each directory in the path.

  4. Not all file systems support the CHKIN command.

Top


 

Parameters

Keyword Description Choices Notes
OBJ Object Path name Required, Positional 1

Top

 

Object (OBJ)

Specifies the path name of the object or a pattern to match the path name or names of objects to be checked in.

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


 

Examples

Example 1: Checking an Object In

 CHKIN   OBJ('W')

This command checks in file W in your current directory. If another user has the file checked out and this user has sufficient authority, the file is checked in.

Top


 

Error messages

*ESCAPE Messages

CPFA09C

Not authorized to object. Object is &1.

CPFA09D

Error occurred in program &1.

CPFA0A1

An input or output error occurred.

CPFA0A3

Path name resolution causes looping.

CPFA0A7

Path name too long.

CPFA0A9

Object not found. Object is &1.

CPFA0AB

Operation failed for object. Object is &1.

CPFA0AD

Function not supported by file system.

CPFA0B2

No objects satisfy request.

CPFA0BE

&1 objects checked in. &2 objects failed.

CPFA0BF

&1 objects checked out. &2 objects failed.

CPFA0DA

Object is a directory. Object is &1.

Top