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

Data Archive Reference

Types of output structure

  • Last UpdatedJun 29, 2023
  • 2 minute read

There are three different types of output structure:

  • Delimited

  • Formatted

  • Keyword

You set the structure type by using the command @ostype type, where type can be D, F or K, for delimited, formatted, and keyword, respectively. In the next example, the structure type is delimited.

* (Ls - PINETMGRSTATS) PICONFIG> @ostr ?
* Ostype D
* Ostru ID,Name
* Ostru User,OSUser

In keyword mode, each line returned shows an attribute name followed by a value. For example:

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

In formatted mode, each output structure definition includes an attribute, a line number, a starting position, and ending position. In the following example, the ID and Name attributes are both output on line 1 with the first field spanning from position 1 to 30 and the second spanning from position 40 to 60. The User and OSUser attributes are output to line 2 using the same spacing to create a formatted table.

* (Ls - PINETMGRSTATS) PICONFIG> @ostype formatted
* (Ls - PINETMGRSTATS) PICONFIG> @ostr ID, 1, 1, 30
* (Ls - PINETMGRSTATS) PICONFIG> @ostr Name, 1, 40, 60
* (Ls - PINETMGRSTATS) PICONFIG> @ostr User, 2, 1, 30
* (Ls - PINETMGRSTATS) PICONFIG> @ostr OSUser, 2, 40, 60
* (Ls - PINETMGRSTATS) PICONFIG> @sele ID=*,Name=SMT*
* (Ls - PINETMGRSTATS) PICONFIG> @ends
1507 SMTHost.exe(8372):remote
piadmin | piadmins | PIWorld ABC\username
*----------
1522 SMTHost.exe
piadmin | piadmins | PIWorld ABC\username
*----------

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