NEXT DATABASE


This field can be set before the execution of a CREATE, OPEN, or SCRATCH statement to operate on a file from a database other than the one currently identified by the DATABASE field. It is then cleared automatically following the execution of the CREATE, OPEN, or SCRATCH statement.

This field can also be set before invoking the SELECT DATABASE subroutine process to automatically select a specific database. Note that the database is not actually changed to the selected value until the next invocation of a detached process.

          SET      --- NEXT DATABASE              =      TST
          SUBR     --- SELECT DATABASE                  SUBPROCESS   END? N  FAIL 0
          INPUT    TAP VENDORS                          DETACHED     END? N  FAIL 0

Related PDFs: DATABASE, SELECTED DATABASE