Article
· Nov 21 1m read

InterSystems IRIS Shells

Hi,

When we open a terminal in IRIS, we are entering the ObjectScript shell. Within this shell, we can execute IRIS commands, such as:

In other words, the ObjectScript command is executed in the current shell. But it's always good to remember that IRIS has other shells

  • SQL
  • Python
  • TSQL
  • MDX

One very interesting aspect is shortcuts. We can access these shells through their calls or via shortcuts, as shown in the table below:

 

Shell

Call

Shortcut

SQL

Do $SYSTEM.SQL.Shell()

:sql

Python

Do $SYSTEM.Python.Shell

:py

TSQL

Do $SYSTEM.SQL.TSQLShell()

:tsql

MDX

Do ##CLASS(%DeepSee.Utils).%Shell()

:mdx

Just like that:

Shell Python:

Shell SQL:

Shell TSQL:

Shell MDX:

 

These shells are extremely useful for running commands and tests. Having these shortcuts at hand saves a lot of time and they are very helpful when developing.

The documentation link
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GCLI_shells provides a detailed look at these shells and their features. They have several interesting features that are worth exploring.

Til next time!!

Discussion (0)1
Log in or sign up to continue