Function
Changes the stack position of a specified workfile.
Format
WORKFILEMOVE workfile name,workfile name
The first parameter gives the current stack position of the workfile. The second parameter gives the stack position to which the workfile is to be moved.
Forbidden contexts
NO USER
Execution
Any workfile that has been created may be moved up or down within the stack. When a workfile is moved, al the stack positions of workfiles that are between the two specified file positions are changed.
Examples
| WORKFILEMOVE !4,! | The fifth workfile in the workfile stack will be moved to the top of the stack. |
| WORKFILEMOVE !1,!-1 | The second workfile in the workfile stack will be moved to the bottom of the stack. |
Error Messages
z NUMBER TOO LARGE FOR CURRENT STACK SIZE