NBSpool for MPE Reference Guide

Chapter 2
2-18
The
LOOKUP_USER_QUEUE variable will also only be defined if it was previously created with a SET
command. The LOOKUP variables use the logon user’s information as opposed to a spool file’s user
information. In the following example, any
$STDLISTs created by one of the three specified users
will be archived to the corresponding files. Spool files created by other users will be ignored.
0> SET VAR=ARCHIVE;USER=MGR.NETBASE;VALUE=’STUFF.ARC’
0> SET VAR=ARCHIVE;USER=MANAGER.SYS;VALUE=’SMSTUFF.DATA’
0> SET VAR=ARCHIVE;USER=OPERATOR.SYS;VALUE=’OPSTUFF.DATA’
0> WHILE $
W> ARC !CURRENT;FILE=!CURR_USER_ARCHIVE
W> END