GETDIR

Read syntax diagramSkip visual syntax diagram
>>-RFS--GETDIR--stem.--+-------+-------------------------------><
                       '-dirid-'   

GETDIR returns a list of the contents of the current or specified directory into the specified REXX array.

Operands

stem.
specifies the name of a stem. (A stem must end in a period.) See section Stems for more information.
dirid
specifies a REXX File System directory level identifier. This is partially or fully qualified. See the CD command, section CD, for more information.

Return codes

See the RFS command, section RFS.

Example

'RFS GETDIR DIRDOC. POOL1:\USERS\USER1\DOCS'

This example places the contents of directory DOCS in the DIRDOC. REXX compound variable.



rvse553.html | Timestamp icon Last updated: Monday, 5 June 2017