Download Command Interpreter Access and Variables Programmer`s Guide

Transcript
To List Multiple Files
The LIST command le prints the contents of multiple les to device
class LP. Up to six les can be specied as parameters when invoking
the command le.
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
Sample Command Files
7-9