Current directory and path
The current directory is the current working directory, and is first in the search order when working with REXX File System (RFS).
The current directory can be set using the CD command, CD. The CD
command has a similar format to the cd command in operating systems such as DOS. The syntax is
CD followed by the partially or fully qualified directory name. To change from a
subdirectory back to the parent directory, type CD ... To change to another
subdirectory, CD can be followed by the subdirectory name.
Examples
'CD POOL1:\USERS\USER1'
'CD DOCS'
'CD ..' The PATH command is used to define the search order for REXX execs, after the current directory
is searched. See PATH for more information. The syntax is
PATH, followed by a list, separated by spaces, of fully qualified directory names.
'CD POOL1:\USERS\USER1\EXECS'
'PATH POOL1:\ POOL1:\USERS\USER1'
'EXEC TEST2.EXEC''POOL1:\USERS\USER1\EXECS\TEST2.EXEC'
'POOL1:\TEST2.EXEC'
'POOL1:\USERS\USER1\TEST2.EXEC'When the REXX/CICS command EXEC is invoked, all three directories above are searched resulting in REXX/CICS finding the exec in the POOL1:\USERS\USER1 directory. If TEST2.EXEC existed in the POOL1:\ directory, RFS would have stopped searching when it was found. The first copy found in the search order is accessed.