![]() |
Suppress logging the file names
Displaying the Variable Actions on the screen as they are executed can extend the execution time significantly. This delay is particularly noticeable when processing large numbers of files.
Setting Task switch 14 (/SETSW ON=14) before executing the Variable Action will prevent the log being displayed.
All files/library elements/Job variables on which a Variable Action has been successfully executed is removed from the file list ('-' Action Code). After the Variable Action has been processed for all files, and after answering U to the following termination query, the user will be presented with a new file list containing only those files for which the Variable Action was unsuccessful. The YANK command (see page 7-) can be used to make the removed entries visible again.
Mass processing of files can equally well be performed in DO or Enter procedures. An example of such a DO procedure is as follows:
/PROC C
/SYSFILE SYSDTA=(SYSCMD)
/SETSW ON=(1,4,11,14)
/EXEC CFS
*001 FILE=...;USER-ID=...;DOC=CFS.DOC;VAR=ON&MOVE :X:
/SETSW OFF=(1,4,11,14)
/ENDP
The above procedure will move the selected files (FILE=...;USER-ID=...) to the :X: Public Volume Set. The names of all files for which the move operation was unsuccessful will be listed in the CFS.DOC file. Entering OLDLIST CFS.DOC in the FILENAME-SELECT field will allow the user to manipulate them further if required.