The LIST command is used to return a list of files in the specified folder.
The supplied working list can be either one, two or five fields.
For a one field list, each entry has the name.
For a two-field list, each sorted entry has type and name.
For a five-field list, each sorted entry has the type, date, time, size and name.
USE BUILTIN(JSM_COMMAND) WITH_ARGS('LIST PATH(/Shared/Data) SERVICE_LIST(TYPE,FDTE,FTME,SIZE,FILE)')) TO_GET(#JSMSTS #JSMMSG #WRKLST)