Slide 21 of 80
Notes:
- The PRINT method is the least efficient of the three choices presented. This technique requires two opens and closes for each record in the file: one open for PRINT, one open for the output redirection, one close for PRINT and another close to redirect output back to $STDLIST.
- The PRINT technique is also not any easier to code than the MSG file method, so why use it?
- Perhaps the data is already in a file and the file is not large (or performance is unimportant).In this case, using PRINT may be appropriate since the script is intuitive and easy to write, and may be better (faster) than copying the existing data to a MSG file first.