Skip to main content


generated description: cubeterminal

In order to begin practicing using ObjectScript, you need to start the Terminal. Click the Caché cube icongenerated description: cube.gifin the task bar and select Terminal from the menu. This brings up the terminal window, and you can see from the prompt that we are in the USER namespace. Namespaces are logical directories, containing routines (programs) and globals (data).

Terminal allows you to type ObjectScript commands and see the results immediately. In this chapter, most pages will contain one or two simulated Terminal sessions like the one below demonstrating several examples mentioned in the text. Later on we'll use Studio to write routines.

When you first start the Terminal, you will be in the USER namespace. Use do ^%CD to change to the SAMPLES namespace. From here, you can look at the provided samples and do your own work.

USER>do ^%CD

Namespace: SAMPLES
You're in namespace SAMPLES
Default directory is c:\InterSystems\Cache\mgr\samples\

FeedbackOpens in a new tab