QShell command `lsobjtypes' print all supported MI object types of the current IBM i VRM to stdout. `lsobjtypes' does not have any argument.
To sort the output of `lsobjtypes' by MI object type in a QShell session, you can type the following QShell command:
lsobjtypes | sort -k 1.1,1
0AC1 JTMMQ 0AC2 SIQ 0AC3 DRQ 0AC4 DCTQ 0AC5 DCXMSQ ... 0E91 MSRVI 0FC1 CBLK 0F00 CB 01EF QTAG 0100 AG 0190 QDAG 0200 PROG 0201 PGM 0202 SQLPKG ... 8100 MCTX 85A0 STREAM 8500 STREAMO
Or if you would like sort the output records by the ASCII value of MI object types, you can type the following command in a PASE session:
qsh_out -c "lsobjtypes" | sort -k 1.1,1
0100 AG 0190 QDAG 0200 PROG 0201 PGM 0202 SQLPKG ... 0901 JRN 09C1 DFTJRN 0A00 Q 0A01 DTAQ 0A02 USRQ ... 8100 MCTX 85A0 STREAM 8500 STREAMO