/
Copy Different Types of IBM i Files Using forfiles and $(_file.type)
Copy Different Types of IBM i Files Using forfiles and $(_file.type)
Copy Different Types of IBM i Files using forfiles and $(_file.type)
Physical files are considered directories in UDM because they contain 1+ member. Save files are considered files because they do not contain any members. The /wiki/spaces/UA73/pages/3768929 statement and the variable $(_file.type) allow you to do a wildcard copy on both save and physical files in the LIB file system.
This example copies a mix of files (Save and Physical) from an IBM i system in a single operation, using the /wiki/spaces/UA73/pages/3768929 statement and the $(_file.type) variable attribute.
LIB File System
/wiki/spaces/UA73/pages/3768929 src=MYLIB/* /wiki/spaces/UA73/pages/3778422 $(_file.type) EQ directory /wiki/spaces/UA73/pages/3778455 src=$(_path)\(*) /wiki/spaces/UA73/pages/3768915/wiki/spaces/UA73/pages/3778455 src=$(_path) end end
Components
/wiki/spaces/UA73/pages/3768702
, multiple selections available,
Related content
Copy Different Types of IBM i Files Using forfiles and $(_file.type)
Copy Different Types of IBM i Files Using forfiles and $(_file.type)
More like this
Copy Different Types of IBM i Files Using forfiles and $(_file.type)
Copy Different Types of IBM i Files Using forfiles and $(_file.type)
More like this
Copy a File to a New IBM i Source Physical File
Copy a File to a New IBM i Source Physical File
More like this
Copy a File to a New IBM i Source Physical File
Copy a File to a New IBM i Source Physical File
More like this
Copy a Set of Files to an Existing Data Physical File
Copy a Set of Files to an Existing Data Physical File
More like this
Copy a Set of Files to an Existing Data Physical File
Copy a Set of Files to an Existing Data Physical File
More like this