5.32.7 LIST

The LIST command returns a working list of absolute file names in a directory.

The working list to return the file names must be defined with a single field long enough to contain the absolute file name.

If no DIR keyword is provided and the current directory has not been changed using other commands, the default JSM instance directory will be searched. Sub-directories are not searched.

If no EXT keyword is provided all files in the directory will be searched by default.

Syntax:

Command

Keyword

Value

Developer notes

LIST

DIR

value

Optional. Fill working list with directory listing. All files in that directory will be selected.

EXT

value

Optional. Filtering on file extension. The filtering match is case insensitive.

SORT

*NONE

Optional. Allows sorting of file names.
Default. No sorting.

*NAME

Sort on file name.

*MODIFIED

Sort on modified date.

REVERSE

*YES

Optional. Reverse the order of the sort.

*NO

Default.

 

Example

LIST DIR(/folder) EXT(xml) #WRKLST(NAME)