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

<pre>
 src=MYLIB/*
if
 $(_file.type) EQ directory
copy
 src=$(_path)\(*)
else
copy
 src=$(_path)
end
end
</pre>
Panel
Html bobswift
forfiles
Html bobswift
Html bobswift
Html bobswift
Html bobswift
Html bobswift

Anchor
1049187
1049187
Components

...