# LIST-ITEM, SORT-ITEM

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
Read Time: 1 minute(s)

Tags: jql

# Description

Displays the contents of items. It takes the general form:

LIST-ITEM file-specifier {record-list} {selection-criteria} {sort-criteria} {USING file-specifier} {(options}

SORT-ITEM file-specifier {record-list} {selection-criteria} {sort-criteria} {USING file-specifier} {(options}
1
2
3

where options specific to LIST-ITEM / SORT-ITEM are:

F start the display of each item on a new page
S suppress line numbers
N non-paged output
P output is sent to the assigned printer
X data is displayed in hexadecimal

# Note

When not displaying in hexadecimal, unprintable characters are displayed as periods. SORT-ITEM can be used to output a sorted list of items.

# Example

LIST-ITEM BP WITH *A1 = "[SUBROUTINE]" (SNP
1

Lists all jBC program from the BP file that are designated as subroutines on line 1 of each program. Line numbers are suppressed. Non-paged output is directed to the assigned printer.

Back to jQL

Back to jQL Cross Reference