Copying Multiple Files

The following examples show both the correct and incorrect use of a WFL job program for copying multiple files.

Correct

In the following program, the file name string parameters TEST/A and TEST/B are successfully passed to the WFL copy job:

The job JOB/WFLCOPY:

?BEGIN JOB WFLCOPY(STRING FNAME1,
                   STRING FNAME2);
  COPY #FNAME1, #FNAME2
  FROM DISK TO PACK;
?END JOB.

Started as:

ST JOB/WFLCOPY("TEST/A", "TEST/B")

Incorrect

The following program example is incorrect because the file name string parameters TEST/A and TEST/B are not passed with their own string parameters:

The job JOB/WFLCOPY:

?BEGIN JOB WFLCOPY(STRING FNAME);
  COPY #FNAME
       FROM DISK TO PACK;
?END JOB.

Started as:

ST JOB/WFLCOPY("TEST/A, TEST/B")