Show TOC Start of Content Area

Background documentation STATUS / STAT  Locate the document in its SAP Library structure

Use

Displays the state of a file or folder. In case the argument given to the command represents a folder, it is possible to use the –r option to get the state of this folder plus all contained files and folders.

Syntax

Syntax

STATUS [-r|-l] [-fFields] <folderItemPath> [[-s] [-d]] [-uf]

Arguments

 

[-r]

If this option is specified and one of the path(s) is a folder, then the items under the folder will be visited recursively and the information on there state is displayed.

[-l]

Specifies that only those files which are on the local file system will be considered.

[-fFields]

Using this option you can specify the properties of the folder item(s) that have to be displayed.

The fields that can be specified are:

      LocalPath (LP)

Absolute local path of the folder item.

      RemotePath(RP)

Absolute remote path of the folder item.

      BrowsePath (BP)

Browse path of the folder item.

      CreatedOn (Con)

Creation date of the folder item.

      CreatedBy (CBy)

Name of the user who created the folder item.

      State (St)

Current state of the folder item.

      LocationState (LSt)

Location state of the folder item.

      LastModifiedDate (LMD)

Date when the folder item was last modified.

      LastModifiedBy (LMBy)

The user who last modified the folder item.

      BranchSequenceNumber (BSN)

Branch sequence number of the folder item.

      SomethingCheckedoutUnde

True if there is a folder item under this folder which is checked out.

      All

Prints all the above fields.

<folderItemPath>

The path to the item whose status you want.

[-s]

Using this option you can specify the field that is used as the basis for sorting the output. The fields that can be specified are the ones listed above. Sorting is in ascending order.

[-d]

Sort the output in descending order.

[-uf]

If this is specified, then the field values will not be truncated to fit into a given space. However, this may lead to output that is not easy to read. It is recommended that this is used only for scripting.

Description

Displays the state folder item.

Example

status -fLocalpath -fBranchSequenceNumber <Path>

Example

To display the status of the a.java file, execute

status a.java

End of Content Area