To List Multiple Files [ Command Interpreter Access and Variables Programmer's Guide ] MPE/iX 5.0 Documentation
Command Interpreter Access and Variables Programmer's Guide
To List Multiple Files
The LIST command file prints the contents of multiple files to device
class LP. Up to six files can be specified as parameters when invoking
the command file.
___________________________________________________________
| |
| PARM F1,F2=$NULL,F3=$NULL,F4=$NULL,F5=$NULL,F6=$NULL|
| SETVAR LIST_I 1 |
| SETVAR LIST_F "!!F1" |
| WHILE LIST_I <= 6 |
| IF UPS("!LIST_F") <> "$NULL" |
| FILE !LIST_F;DEV=LP |
| ECHO (LIST): Printing of !LIST_F is in progress.|
| PRINT !LIST_F,*LIST_F |
| RESET !LIST_F |
| SETVAR LIST_I LIST_I+1 |
| SETVAR LIST_F "!!F!LIST_I" |
| ENDIF |
| ENDWHILE |
| DELETEVAR LIST_I, LIST_F |
___________________________________________________________
Figure 7-11. List Command File
MPE/iX 5.0 Documentation