Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

Importing Code Using Terminal

Here are the steps for importing code using Terminal:

  1. Open Terminal. From the Windows System Tray, click the cube and then click Terminal on the menu.

  2. Verify that Terminal is pointed at the correct namespace. In this case, we want the USER namespace. If necessary, use the zn command to change namespaces.

    SAMPLES>zn "user"
    Copy code to clipboard
  3. Use the $SYSTEM.OBJ.Load method to load the classes contained in an XML file into Caché and compile them.

    USER>Write $SYSTEM.OBJ.Load("C:\InterSystems\Cache\Dev\tutorials\security\Zen_Authenticate.xml","ck")
    Load started on 04/20/2011 10:27:15
    Loading file C:\InterSystems\Cache\Dev\Tutorials\security\Zen_Authenticate.xml as xml
    Imported class: SecurityTutorial.Application
    Imported class: SecurityTutorial.CreateDelegatedUsers
    Imported class: SecurityTutorial.HomePage
    Imported class: SecurityTutorial.LogIn, compiling 4 classes
    Compiling class SecurityTutorial.Application
    Compiling class SecurityTutorial.CreateDelegatedUsers
    Compiling class SecurityTutorial.HomePage
    Compiling class SecurityTutorial.LogIn
    Compiling routine SecurityTutorial.Application.1
    Compiling routine SecurityTutorial.CreateDelegatedUsers.1
    Compiling routine SecurityTutorial.HomePage.1
    Compiling routine SecurityTutorial.LogIn.1
    Load finished successfully.
    Copy code to clipboard

    Note that the ck argument causes the loaded classes to be compiled and any generated source code to be saved.

FeedbackOpens in a new window