Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
1045975
1045975
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 forfiles statement  statement and the variable $(_file.type) allow you to do a wildcard copy on both save and physical files in the LIB file system.

Anchor
1045976
1045976
This example copies a mix of files (Save and Physical) from an IBM i system in a single operation, using the forfiles statement  statement and the $(_file.type) variable attribute.

Anchor
1049819
1049819
LIB File System

Panel
forfiles

if

copy

else

copy
 src=MYLIB/*
if $(_file.type) EQ directory
copy src=$(_path)\(*)
elsecopy src=$(_path)
end
end

Anchor
1049187
1049187
Components

...