Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Data Archive Reference

List mode for viewing information

  • Last UpdatedJan 13, 2023
  • 1 minute read

Use List mode to read data from a table. This is the default mode when you start piconfig.

In List mode, follow these steps:

  1. Specify the output fields and formatting that you want by using the output structure command, @ostr.

  2. Retrieve the data you need by using the select command, @sele.

  3. Use the @ends command to proceed with listing the results.

The following example defines a two-line output structure in which the first line contains the connection ID and application name attributes and the second line contains the PI user and Windows user attributes. The @sele command returns all records in this output structure for which the application name begins with "SMT".

* (Ls - ) PICONFIG> @tabl pinetmgrstats
* (Ls - PINETMGRSTATS) PICONFIG> @ostr ID,Name
* (Ls - PINETMGRSTATS) PICONFIG> @ostr User,OSUser
* (Ls - PINETMGRSTATS) PICONFIG> @sele ID=*,Name=SMT*
* (Ls - PINETMGRSTATS) PICONFIG> @ends
1507,SMTHost.exe(8372):remote
piadmin | piadmins | PIWorld,OSI\jallen
*----------
1522,SMTHost.exe
piadmin | piadmins | PIWorld,OSI\jallen
*----------

Note: To output all attributes for each entry in the table, use the command @ostr *.

To view an output structure, use the command @ostr ?.

TitleResults for “How to create a CRG?”Also Available in