Operational Differences between MultiValue and Caché
Notes on The MV Shell
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

This section provides additional information related to interacting with Caché from the MV shell.

Privilege Requirements
Running the MV Shell requires %Developer privileges. For information on the Caché security model, see the Caché Security Administration Guide. For specific information on roles and privileges, please consult the chapters on Roles and Privileges and Permissions.
Issuing MVBasic Commands in the Shell
The MV shell provides the ability to execute MVBasic commands directly by preceding them with a semicolon. For example,
; A = 2
; B = 3
; PRINT  "The product is "
; PRINT A*B
will result in 6 being echoed to the terminal window.
Issuing Caché ObjectScript Commands from MV
The MV shell provides a way to issue ObjectScript commands without having to terminate shell operation. The COS command sends the remainder of its line to Caché for execution. For example, at the MV prompt, the command
COS WRITE "Hello, World", !
will write the expected string to the output device followed by a newline. Since multiple Caché commands may be placed on a line (separated by single blank spaces), a single invocation of COS may execute multiple Caché commands.
The character “[” may be used in place of the “COS”.
Items with Null ID
Items with a "null" id are only partially accessible from the shell. For TCL-II commands, the following will work:
CT FILENAME ''
CT FILENAME ' ' 'SOMEITEMID'
but the following will not:
CT FILENAME 'SOMEITEMID' ''
The null id has to be the first id in the list. In addition,
Note:
InterSystems discourages users from creating items with a null id and recommends that the only command they use on such items is DELETE.