Versions Compared

Key

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

...

The following example shows the same options for a batch execution in z/OS:

Panel
//jobname JOB CLASS=A,MSGCLASS=X
//STEP1 EXEC UDMPRC*
//UNVSCR1 DD * 
udm commands?? 
*/ 
//SYSIN DD * 
-script UNVSCR1 -options "file=* source=c:\source dest=c:\destination"*
*/ 



For IBM i examples, see Universal Data Mover Manager for IBM i.

...

The following example illustrates the call command executing the copyfiles.udm script (as identified in the previous example):

Panel
UDM
UDM>call copyfiles.udm file=* source=c:\source dest=c:\destination
UDM>
UDM>quit


Unlike executing a script from the command line, UDM will not exit automatically when it finishes processing a script invoked using the call command.

Tip
titleA Stonebranch Tip

If you are passing a large number of parameters to a script, you may want to break up the call command into multiple lines.

You can do this by putting a + at the end of each line break, except for the last line.

However, this method cannot be used for invoking UDM script files with -script and -optons command line options (SCRFILE and OPTIONS command parameters under IBM i).

Invoking Scripts from within Scripts

...

An example of how the copyfiles.udm script might look is as follows:

Panel
cd src=$(source)
cd dst=$(dest)
copy src=$(file)


In this example:

  • Transfer server with the logical name src would change its directory to c:\source.
  • Transfer server with the logical name dst would change its directory to c:\destination.
  • All files in the c:\source directory then would be copied from the first transfer server over to the second.