HPlogo Command Interpreter Access and Variables Programmer's Guide: Series HP 3000 Computer Systems > Chapter 7 Sample Command Files

To List Multiple Files

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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.

Figure 7-11 List 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
Feedback to webmaster