File - Save as Global Macro

Select Save as Global Macro from the File menu to display the Save As dialog and save the current macro as a global macro.

Global macros are those that are automatically loaded when you open STATISTICA (i.e., you will not have to locate it and open it first). They will by default be available in the Macros dialog box [displayed when you select the Tools tab and click Macro, and from the menu select Macros (ribbon bar) or when you select Macros from the Tools - Macro submenu (classic menus)].

Global macros are the same as standard macros or SVB programs except that they are located in the same directory (by default) where the STATISTICA startup program file is located. When you select Save as Global Macro, this directory will automatically be preselected. Save your frequently used macros via Save as Global Macro so that they are readily available when you begin STATISTICA the next time. Of course, you can always later and "by hand" (e.g., via the Windows operating system functions) move macros in and out of the start-up (global macro) directory.

Portability of macros containing object and class modules
SVB programs can contain references to objects and classes defined in separate files (class or object modules).When an SVB program contains a reference to an external class or object module, it may use the asterisk convention in which case during execution the program will look in the global macro directory (and other standard STATISTICA directories) for those files. For example, if your SVB program contains the statement '$Include: "*OModule.svo" then during the execution of the macro, the program will look for file Omodule.svo in the global macro directory. Thus, when writing programs for portability it is recommended to use the asterisk convention, and to place object and class modules into the global macro directory.