UDM - IBM i cd (Change Directory) Command
IBM i cd (Change Directory) Command
When you authenticate with a UDM Server running under IBM i, the current library is set to the default library for that user.
In file operations where the library is not identified explicitly as a part of the file specification, the current library is used instead.
Example:
COPY SRC=C:\MYFILE DST=MYFILE(MYMEMB)
With a current library set to MYUSER, this command will result in a destination file specification name of MYUSER/MYFILE(MYMEMB).
You can change the current library by issuing the cd (Change Directory) command with the new library name as in this example:
CD DST=YOURUSER
There is a special case, when using UDM from one IBM i machine to another, where the source library name can be used instead. In order for this to work, you must first clear the destination current library by issuing the following command:
CD DST=..