HPlogo QUERY/V Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 QUERY/V COMMANDS

MODE=

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

Changes the mode of access to the primary data base.

Syntax

   M[ODE]= mode number

For example:

   >MODE=3



Where mode number = 3

Parameter

mode number

is an integer from 1 to 8 representing the access mode you want to use.

Discussion

You can use this command to change your mode of access to the primary data base. If the MODE= command is entered, QUERY first closes the current primary data base before attempting to open the data base with the new access mode.

Example

   text

     >MODE=6''

     >AD INVENTORY''

     ILLEGAL ACCESS''

     >MODE=3''

     >AD INVENTORY''

     STOCK#          =>>6650D22S

     ONHANDQTY       =>>11

     SUPPLIER        =>>H & S SURPLUS

     UNIT-COST       =>>1395

     LASTSHIPDATE    =>>121585

     BINNUM          =>>3



     STOCK#          =>>//

     >

In the example above, mode 6 is specified. Since mode 6 does not allow write access to the primary data base, the user must change to a mode which allows such access. Then QUERY allows the addition of an INVENTORY entry.

Feedback to webmaster