Versions Compared

Key

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

...

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

if

/wiki/spaces/UA73/pages/3768929 src=MYLIB/*

copy

/wiki/spaces/UA73/pages/3778422 $(_file.type) EQ directory
/wiki/spaces/UA73/pages/3778455 src=$(_path)\(*)

else

copy

/wiki/spaces/UA73/pages/3768915/wiki/spaces/UA73/pages/3778455 src=$(_path)
end
end
</pre>
Panel
Html bobswift
<pre>

forfiles

Html bobswift
Html bobswift
Html bobswift
Html bobswift
Html bobswift

Anchor
1049187
1049187
Components

...