MaxL Statements

What's new in MaxL?

The MaxL Language has its own grammar that you use to create statements.
In this document, the syntax for the MaxL language is illustrated using railroad diagrams.

alter application
alter database
alter group
alter system
alter user
create application
create calculation
create database
create filter
create function
create group
create location alias
create macro
create partition
create user
display application
display calculation
display database
display disk volume
display filter
display filter row
display function
display group
display location alias
display macro
display partition
display privilege
display session
display system
display user
display variable
drop application
drop calculation
drop database
drop filter
drop function
drop group
drop location alias
drop macro
drop partition
drop user
execute calculation
export data
export lro
grant
import data
import dimensions
import lro
login *
refresh custom definitions
refresh outline
refresh replicated partition

The MaxL grammar is case-insensitive. Semicolon statement-terminators are required when using the MaxL Shell. However, do not use semicolons at the end of statements passed using Perl functions. Key words of the MaxL grammar are represented in this document in lower-case. Terminals, represented in upper-case, are to be replaced by the appropriate names, numbers, privileges, or strings. For more information about components of MaxL statements, see Language Definition.

* Note: Login is part of the separate command shell grammar, not the MaxL language itself. You can use the login statement with the MaxL Shell, but it is not embeddable in Perl. For Perl, use connect.

ALTER APPLICATION

Change application-wide settings. Permission required: Application designer.

Examples

alter application Sample set minimum permission read;

Grants all users read access to all databases in the Sample application. Users can retrieve data values and run report scripts.

alter application Sample disable commands;

Prevents all users from making requests to the application scope. Use this statement before performing application-wide update and maintenance operations.

alter application Acme set variable Current_month July;

Assigns the string value July to the substitution variable "Current_month." "Current_month" may be referenced by calculations in the Acme application.
Note on Semicolons: Examples in this document follow the syntax requirements of the MaxL Shell. Semicolon statement-terminators are required by the shell, but not by the MaxL language. Therefore, terminate statements with semicolons when using the MaxL Shell, but not when issuing MaxL statements via Perl functions.

ALTER DATABASE

Change database-wide settings. Permission required: Database designer.

Examples

alter database Sample.Basic enable cache_pinning;

Locks database cache pages in physical memory so that the operating system will not page them out while the database is still using them.

alter database Sample.Basic disable two_pass_calc;

Prevents recalculation (after a default calculation) of members tagged as Two Pass.

alter database Sample.Basic set disk volume c file_type index;

Changes the storage settings for Sample Basic so that the alternate disk volume specified as the C: drive stores only index files.

alter database Sample.Basic set lock_timeout after 120;

Changes the number of seconds to wait for blocks to be unlocked. If a transaction request is made which cannot be granted in 120 seconds, the transaction is rolled back until a lock can be granted.

DISK VOLUME

Add a disk volume definition if you want to allocate storage across multiple volumes, or restrict space used on a volume. You can allocate storage for index files, data files, or both. If no disk volume is defined, data and index files are stored in the database directory (for example, $ARBORPATH/app/sample/basic).

File_size is the maximum size an index or data file may attain. Default = 2G; minimum = 8192K (8M).
Partition_size is the maximum amount of disk space allocated to the volume. Default = unlimited.

ALTER GROUP

Rename a group or change the comment that describes the group. Permission required: create_user.

Examples

alter group NewGroup rename to Recruit;

alter group Recruit comment 'This group is for the newly hired';

ALTER SYSTEM

Change the state of the Hyperion Essbase server. Start and stop applications, delete application log files, manipulate system-wide variables, manage password and login activity, disconnect users, kill processes, back up the security file, and shut down the server. Permission required: supervisor.

Examples

alter system unload application Sample;

Stops the Sample application, if it is currently running.

alter system logout session by user Fiona;

Disconnects Fiona from any applications or databases to which she is connected.
Note: To log out a user, log out the sessions owned by that user.

alter system set password_reset_days 10;

Specifies that all users will be prompted after 10 days to change their passwords. The day count for any user is reset when the user changes the password or is edited or re-activated by a supervisor.

SESSION SPECIFICATION

A session is a single user connection to Essbase. The session can be identified by keywords and names indicating context, or by a unique session ID number.

A request is a query sent to Essbase by a user or by another process; for example, starting an application, or restructuring a database outline. Only one request at a time can be processed in each session.

If a session is processing a request at the time that an administrator attempts to terminate the session, the administrator must either terminate the request first, or use the force kewyord available with alter system to terminate the session and the current request.

ALTER USER

Add or remove a user to or from a group. Rename a user. Change the comment that describes a user. Enable or disable a user account. Change a user's password, or specify whether it should expire. Permission required: create_user.

Examples

alter user Fiona add to group Newhires;

Assigns Fiona to a group called Newhires. This gives Fiona the same minimum privileges as those defined for the group.

alter user Fiona enable;

Enables user Fiona to log in again.

alter user Fiona set password_reset_days immediate;

Requires the user Fiona to change her password at the next login.

CREATE APPLICATION

Create or re-create an application, either from scratch or as a copy of another application on the same system. APP-NAME must consist of 8 or fewer characters. Avoid spaces and special characters when naming applications and databases. Application names are case-sensitive.

Permission required: create_application. To copy an application, designer permission on the source application is additionally required.

Examples

create application Sample comment 'This is a test application.';

Creates a new application called Sample with an associated comment.

create application Newsamp as Sample;

Creates an application called Newsamp which is a copy of the application Sample.

create or replace application Sample;

Creates an application called Sample. If an application named Sample already exists, it is overwritten.

CREATE CALCULATION

Create, replace, or copy a stored calculation.
Permissions required: Database designer to create database-level calculations. Application designer to create application-level calculations. When creating database-level calculations, this statement requires the database to be started.

A stored calculation can be associated with an application/database, or with an application only. To create an application-level calculation, use two tokens for CALC-NAME. To create a database-level calculation, use three tokens. See CALC-NAME for more details.
Note: Calculations created using MaxL must be valid. For information about calculation syntax, see the Database Administrator's Guide.

Examples

create or replace calculation sample.basic.Accts
'SET UPDATECALC ON;
CALC DIM(Accounts);'
;
Creates a calculation named Accts that is associated with sample.basic.

create calculation sample.basic.Accts2 as app.db.Accts

Creates a calculation named Accts2 on sample.basic that is a copy of another database's calculation named Accts.

CREATE DATABASE

Create or re-create a regular or currency database. Optionally create the database as a copy of another database on the same system. DBS-NAME must consist of 8 or fewer characters. Avoid spaces and special characters when naming applications and databases.

Permission required: Application designer. To copy a database, designer permission on the source database is additionally required.

Examples

create or replace database Sample.Basic comment 'This is a test.';

Creates a database called Basic within the Sample application. If a database named Basic within the Sample application already exists, it is overwritten.

create database Sample.New as Sample.Basic;

Creates a database called New within the Sample application that is a copy of the database Basic within the Sample application.

create currency database Sample.Interntl;

Creates a currency database called Interntl within the Sample application.

CREATE FILTER

Create or re-create a database security filter, either from scratch or as a copy of another filter on the same system. Filters control security for database objects. Use grant to assign filters to users and groups.
Minimum permission required: Database designer.
Note: Filters created using MaxL must be valid. For information about filter syntax, see the Database Administrator's Guide.

MEMBER-EXPRESSION must be enclosed in single quotation marks. It can be a comma-separated list.

Examples

create filter sample.basic.filt1 read on 'Jan, sales', no_access on '@CHILDREN(Qtr2)';

Creates a filter to restrict privileges to Sample Basic as follows: gives read-only access to the intersection of Jan and sales (sales data for January only); blocks access to children of Qtr2 (April, May, and June).

create or replace filter sample.basic.filt1 read on 'Sales, @ATTRIBUTE(Bottle)';

Creates a filter (or changes an existing filter) to restrict privileges to Sample Basic as follows: gives read-only access to sales data for products packaged in a bottle (product base dimension members associated with the Bottle attribute member).

CREATE FUNCTION

Create or re-create your own registered Hyperion Essbase function, using a Java method.
Minimum permission required: Application designer to create a local (application-level) function. Supervisor to create a global (system-level) function.
Process to follow:

  1. Develop the functions in Java classes.
  2. Use MaxL's create function to register them in the Hyperion Essbase calculator framework.
  3. You can now use the functions in the same way that you use the standard Hyperion Essbase calculation functions.

To use this feature, you must have selected to install the Java Virtual Machine with Hyperion Essbase.

To create a global or system-level function, use a single name for FUNC-NAME. For example, '@COVARIANCE'.
To create a local or application-level function, use MaxL's double naming convention for FUNC-NAME. For example, Sample.'@COVARIANCE'. The second token must be enclosed in single quotation marks because it contains a special character.

Example

CREATE FUNCTION '@COVARIANCE' AS 'com.hyperion.essbase.calculator.Statistics.covariance' SPEC '@COVARIANCE (expList1, expList2)' COMMENT 'computes covariance of two sequences given as expression lists';

CREATE GROUP

Create or re-create a group, either from scratch or as a copy of another group.

Examples

create group Level_1 as Newhires comment 'Copy of Newhires';

Creates a group called Level_1 that is a copy of the existing group Newhires.

CREATE LOCATION ALIAS

Create on the database a location alias identifying a host name, database, user name, and password. Location aliases provide a shorthand way of referencing login information for other Hyperion Essbase databases. Minimum permission required: Database designer.
Note: Location aliases created using MaxL must be valid. For information about location aliases, see the Database Administrator's Guide. This statement requires the database to be started.

Examples

create location alias EasternDB from Sample.Basic to East.Sales at Easthost as Fiona identified by sunflower;

Creates a location alias called EasternDB on Sample.Basic which represents the following login information: Location aliases are used by the @XREF function for cross-database calculations.

CREATE MACRO

Create or re-create your own Hyperion Essbase macro as your chosen combination of existing calculation functions or macros. This statement registers the new macro with the Essbase custom-defined function and macro catalog.
Minimum permission required: Application designer to create a local (application-level) macro. Supervisor to create a global (system-level) macro.

To create a global (system-level) macro, use a single name for MACRO-NAME. For example, '@COVARIANCE'.
To create a local (application-level) macro, use MaxL's double naming convention for MACRO-NAME. For example, Sample.'@COVARIANCE'.

Example

create macro Sample.'@COVARIANCE'(single, single) as '@COUNT(SKIPMISSING,@RANGE(@@S))' spec '@COVARIANCE (expList1, expList2)' comment 'Computes covariance of two sequences given as expression lists';

CREATE PARTITION

Create or validate a partition definition between two databases. Permission required: Database designer at both sites. The first DBS-NAME is the local database, and the second DBS-NAME is the remote database. Creating a partition to the remote site means the current database is the source. Creating a partition from the remote site means the current database is the target.

Multiple area specifications are allowed, provided they are separated by whitespace. Multiple mappings are allowed, provided they are separated by whitespace. All area aliases used in a mapping should be associated with the target, and the direction of the mapped clause should go from source to target.

Note: Partitions created using MaxL must be valid. To validate a partition, use the validate only clause. For information about partition definitions, see the Database Administrator's Guide.

Select the type of partition to create:

CREATE TRANSPARENT PARTITION

Create or validate a transparent partition definition between two databases. A transparent partition allows users to manipulate data that is stored in a target database as if it were part of the source database. The remote data is retrieved from the data source each time that users at the data target request it.

Examples

create or replace transparent partition sampeast.east
	area '@CHILDREN("Eastern Region"), @CHILDREN(Qtr1)' sourceArea
to samppart.company at localhost
as partitionuser identified by 'password'
	area '@CHILDREN(East) @CHILDREN(Qtr1)' targetArea;
Creates a transparent partition between the source, sampeast.east, and the target, samppart.company. The partition is defined only for the areas specified by the area aliases sourceArea and targetArea.
create or replace transparent partition source.source
        area 'DimensionA' sourceAreaA
        area 'DimensionB' sourceAreaB
to target.target at localhost
as admin identified by 'password'
        area 'ParentMemberA' targetAreaA
        area 'ParentMemberB' targetAreaB
	mapped targetAreaA (ChildA) to (Child_a)
	mapped targetAreaB (ChildB) to (Child_b)
	; 
Creates a partition from database Source to database Target where the partitioned areas between them are DimensionA and DimensionB on the source, corresponding to ParentMemberA and ParentMemberB (respectively) on the target. Differences in member names between the two partitioned areas are resolved during the partition creation, using the mapped clauses. Area aliases are used after each area specification, so that members can be mapped specifically for each area.

CREATE REPLICATED PARTITION

Create or validate a replicated partition definition between two databases. A replicated partition copies a portion of the source (or master) database to be stored in a target database. Users can access the target database as if it were the source. The administrator must periodically refresh the target data from the source data.

Examples

create or replace replicated partition source.source
        area 'DimensionA' sourceAreaA
        area 'DimensionB' sourceAreaB
to target.target at localhost
as admin identified by 'password'
        area 'ParentMemberA' targetAreaA
        area 'ParentMemberB' targetAreaB
	mapped targetAreaA (ChildA) to (Child_a)
	mapped targetAreaB (ChildB) to (Child_b)
	; 
Creates a partition from database Source to database Target where the partitioned areas between them are DimensionA and DimensionB on the source, corresponding to ParentMemberA and ParentMemberB (respectively) on the target. Differences in member names between the two partitioned areas are resolved during the partition creation, using the mapped clauses. Area aliases are used after each area specification, so that members can be mapped specifically for each area.
create or replace replicated partition sampeast.east
	area '@IDESCENDANTS("Eastern Region"), @IDESCENDANTS(Qtr1)'
to samppart.company at localhost
as partitionuser identified by 'password'
	area '@IDESCENDANTS(East) @IDESCENDANTS(Qtr1)'
update disallow;
Creates a replicated partition from an area in the source database, sampeast.east, to an area in the target database, samppart.company.
create or replace replicated partition sampeast.east
        area '@IDESCENDANTS("Eastern Region"), @IDESCENDANTS(Qtr1)' 
to samppart.company at localhost
as admin identified by 'password'
        area '@IDESCENDANTS(East) @IDESCENDANTS(Qtr1)' foo
	mapped foo (Year) to (Yr) 
update allow validate only;
Validates the syntax of a replicated partition you might want to create. To create the partition after checking validity, simply remove the validate only phrase. For an explanation of foo as used above, see the definition for AREA-ALIAS.

CREATE LINKED PARTITION

Create or validate a linked partition definition between two databases. A linked partition enables users to navigate from one data value in one database, to a subset of another database. The two databases may contain very different outlines.

For example, if a Spreadsheet Add-in user clicks a database cell that contains a link to another database, a new sheet opens displaying the dimensions in the second database. The user can then drill down into the linked database's dimensions.

Examples

create or replace linked partition sampeast.east
	area '@DESCENDANTS("Eastern Region"), @DESCENDANTS(Qtr1)'
to samppart.company at localhost
as partitionuser identified by 'password'
	area '@DESCENDANTS(East) @DESCENDANTS(Qtr1)' 
	area '"Region 9020" "FLD Other"'
default login as appdesigner identified by 'password';

CREATE USER

Create or re-create a user, either from scratch or as a copy of another user. Users can be created to log in using Essbase security, or to use external authentication using an outside authentication protocol. Optionally create the Essbase-authenticated user as a member of a group.

Examples

create user Fiona identified by sunflower;

Creates a user called Fiona with the password sunflower.

create user Guest identified by 'password' member of group Visitors;

Creates a user called Guest with the password password, and adds Guest to the group called Visitors. Quotation marks are required because password is a MaxL keyword.

create or replace user Guest identified by 'password' as RecycleMe;

Creates a user called Guest as a copy of an existing user called RecycleMe. If Guest already exists, it is overwritten.

create or replace user Fred type external with protocol 'LDAP' identified by 'cn=Engineers, ou=Groups, dc=yahoo, dc=com@server2';

Creates a user called Fred who is externally authenticated with the Lightweight Directory Access Protocol.

DISPLAY APPLICATION

View information about current application-wide settings.

Examples

display application;

Displays information about all applications on the system.

display application Sample;

Displays information about the Sample application.

DISPLAY CALCULATION

View a list of stored calculations on the system.

Examples

display calculation;

DISPLAY DATABASE

View information about current database-wide settings.

Examples

display database;

Displays information about all databases on the system.

display database Sample.Basic;

Displays information about the Sample.Basic database.

Return Values

The values returned for the currency conversion field are numeric, and translate as follows:

Constant Value
1 division
2 multiplication

The values returned for the compression field are numeric, and translate as follows:

Constant Value
1 Run-length encoding
2 Bitmap
3 ZLIB

DISPLAY DISK VOLUME

View a list of currently defined disk volume definitions.

Note: to manage disk volumes, use alter database (containing add, drop, and set disk volume).

Examples

display disk volume;

Displays all (if any) disk volumes defined on the system.

display disk volume sample.basic.'vol3/hyperion/essbase';

or

display disk volume sample.basic.C;

Displays information about a particular disk volume definition on Sample.Basic.

Return Values

The values returned for the file type field are numeric, and translate as follows:

Constant Value
1 Index
2 Data
3 Index and Data

DISPLAY FILTER

View a specific filter or a list of all filters on the system.

Examples

display filter;

Displays the names of all filters on the system.

DISPLAY FILTER ROW

View the filter rows which define database access within a specific filter or all filters.

Examples

display filter row sample.basic.filt2;

Displays the row-by-row definition of a filter named filt2 which is associated with Sample.Basic.

DISPLAY FUNCTION

View a list of custom-defined functions available globally or to an application. If MaxL shows no application name next to a function in the display output, then that function is global (system-wide). This statement also returns the validation status of an application's local custom-defined function or functions. Minimum permission required: read.

Examples

display function on application sample;

Displays all custom-defined functions associated with the application Sample.

Output Columns

Column Name Contents
application Application name(s).
function Registered custom-defined function name(s), as defined by FUNC-NAME in the create function statement.
class The java class before the method, as defined by JAVACLASS.METHOD in the create function statement.
method The java method (at the end of the class), as defined by JAVACLASS.METHOD in the create function statement.
spec Optional Essbase calculator-syntax specification string, as defined by CALC-SPEC-STRING in the create function statement.
comment String as defined by COMMENT-STRING in the create function statement.
runtime Values: TRUE or FALSE. Whether or not the custom-defined function was created with the runtime property.
state The current state of the registered custom-defined function.
Values:
  • 0 = UNKNOWN. It is unknown whether the function is valid Java and is loaded into any application process.
  • 1 = NOT_LOADED. The function is not loaded into any application process. You may have to refresh or restart the application in order to use this function. Or, the function may not be developed validly in Java.
  • 2 = LOADED.
  • The function is valid Java, and is loaded into at least one application process.
  • 3 = OVERRIDDEN. The local (application) function is overridden by a global (system-wide) function of the same name.

DISPLAY GROUP

View a specific group or a list of all groups on the system. To view group membership information, use display user.

DISPLAY LOCATION ALIAS

View a specific location alias or a list of all location aliases defined on the system.

Examples

display location alias all;

Displays a list of location aliases defined on the system.

DISPLAY MACRO

View a list of custom-defined macros available globally or to an application.
Minimum permission required: read.
If MaxL shows no application name next to a macro in the display output, then that macro is global (system-wide).

Examples

display macro on application sample;

Displays all custom-defined macros associated with the application Sample.

Output Columns

Column Name Contents
application Application name(s).
macro Macro name(s), as defined by MACRO-NAME in the create macro statement.
signature Macro signature, as defined by the custom-defined macro input parameters in the create macro statement.
expansion Macro expansion, as defined by MACRO-EXPANSION in the create macro statement.
spec Optional Essbase calculator-syntax specification string, as defined by CALC-SPEC-STRING in the create macro statement.
comment String as defined by COMMENT-STRING in the create macro statement.
state The current state of the registered custom-defined macro.
Values:
  • 0 = UNKNOWN. It is unknown whether the macro is loaded into any application process.
  • 1 = NOT_LOADED. The macro is not loaded into any application process. You may have to refresh or restart the application in order to use this macro.
  • 2 = LOADED.
  • The macro is loaded into at least one application process.
  • 3 = OVERRIDDEN. The local (application) macro is overridden by a global (system-wide) macro of the same name.

DISPLAY PARTITION

View information about a specific partitioned database or all partitioned databases on the system.

Note: if a partition definition is invalid, the same partition may be displayed twice, one time for each half. Each half will show the connection information of the other half.

Examples

display partition all;

Displays information about all partitioned databases defined on the system.

DISPLAY PRIVILEGE

View a list of privileges, calculations, or filters held by users or groups.

display privilege user Fiona;

Displays the privileges user Fiona has on each database object, including any calculations or filters granted to Fiona.

display privilege group;

Displays privileges held by all groups on the system to all applications and databases on the system.

Return Values

The values returned for the type field are numeric, and translate as follows:

Constant Value
1 System-level privilege
2 System-level role
3 Execute calculation
4 Filter

DISPLAY SESSION

View active login sessions on the current server, application, or database, including:

display session;

display session on database sample.basic;

DISPLAY SYSTEM

View information about current system-wide settings.

Examples

display system;

Displays current password and session management settings.

DISPLAY USER

View a specific user or a list of all users defined on the system. View group membership information.

Examples

display user;

Displays all users on the system and shows whether they are logged in, whether their accounts are enabled, and whether their passwords are set to expire.

display user in group;

Displays the membership information of all groups on the system.

display user in group big_group;

Displays the membership information for a group called big_group.

DISPLAY VARIABLE

View a list of substitution variables defined on the system.

Note: to manage substitution variables, use alter database (containing add, drop, and set variable).

Examples

display variable;

Displays a list of all susbstitution variables on the Essbase OLAP server.

DROP APPLICATION

Delete an empty application from the system. To remove an application with databases, use cascade. To remove an application that has locked objects in a constituent database, you can use force. Minimum permission required: designer.

DROP CALCULATION

Delete a stored calculation from a database. Minimum permission required: designer.

Examples

drop calculation Sample.basic.calcname;

Deletes a calculation from Sample.basic.

DROP DATABASE

Delete a database from the sytsem. Minimum permission required: Database designer. If the database has outstanding locks, clear them first, or use force to drop with locks.

Examples

drop database Sample.Basic force;

Deletes the database Sample.Basic, even if client users have outstanding locks on Sample.Basic.

DROP FILTER

Delete a security filter from the database. Minimum permission required: Database designer.

Examples

drop filter sample.basic.filter1;

Deletes the filter called filter1 from the sample.basic database.

DROP FUNCTION

Delete a custom-defined function from the system or from an application.
Minimum permission required: Application designer to drop a local (application-level) function. Supervisor to drop a global (system-level) function.

If you drop a custom-defined function after having associated it with an application (using refresh custom definitions), you may have to stop and restart the application for the drop to take effect.

Examples

drop function sample.'@COVARIANCE';

Deletes the function called @COVARIANCE from the Sample application.

DROP GROUP

Delete a user group from the system. Users belonging to the group are not deleted. Minimum permission required: create_user.

Examples

drop group big_group;

Deletes the group called big_group from the system.

DROP LOCATION ALIAS

Delete from the database a location alias identifying a host name, application, database, user name, and password. Minimum permission required: database designer.

Examples

drop location alias Main.Sales.EasternDB;

Drops the location alias called EasternDB in the Main.Sales database.

DROP MACRO

Delete a custom-defined macro from the system or from an application.
Minimum permission required: Application designer to drop a local (application-level) macro. Supervisor to drop a global (system-level) macro.

If you drop a custom-defined macro after having associated it with an application (using refresh custom definitions), you may have to stop and restart the application for the drop to take effect.

Examples

drop macro sample.'@COVARIANCE';

Deletes the macro called @COVARIANCE from the Sample application.

DROP PARTITION

Delete from the system a partition definition between two databases. Database designer privilege for each database is required.

Examples

drop replicated partition Samppart.Company from Sampeast.East at EastHost;

DROP USER

Delete a user account from the system. Minimum permission required: create_user.

Examples

drop user Fiona;

Deletes the user Fiona from the system.

EXECUTE CALCULATION

Execute a stored calculation, the stored default calculation (determined by alter database), or an anonymous (non-stored) calculation string.

Minimum permissions required:

A stored calculation can be associated with an application/database, or with an application only. To execute a calculation stored at the application level, you must specify which database to calculate using the syntax 'on database STRING.'

Examples

execute calculation Sample.Basic.calcname;

Calculates the Sample.Basic database using a stored calculation file assocatied with the database.

execute calculation Sample.calcname on database Basic;

Calculates the Sample.Basic database using a stored calculation file assocatied with the application Sample.
execute calculation 
  'SET MSG ERROR;
   CALC ALL;'
on Sample.basic;
Calculates Sample.Basic using an anonymous (unstored) calculation string.

top EXPORT DATA

Export all data, level-0 data, or input-level data, which does not include calculated values. Export files are stored in the ARBORPATH/app directory on the server. To use Report Writer, export the data using a report file.
Minimum permission required: Read. This statement requires the database to be started.

To export data in parallel, specify a comma-separated list of export files. The number of threads Hyperion Essbase uses depends on the number of file names you specify.

To export data in column format, use the optional "in columns" grammar.

During a data export, the export process allows users to connect and perform read-only operations.

Example

export database sample.basic data to data_file 'D:\\fileout','D:\\fileout2','D:\\fileout3';

Exports data concurrently to a list of file names.

export database sample.basic input data
to data_file 'exp_input.exp';

export database sample.basic using report_file "'$ARBORPATH/App/Sample/Basic/asym.rep'" to data_file 'home/month2.rpt';

Note: In the path to the report file in the above UNIX example, double quotation marks are used to allow variable expansion in the single-token FILE-NAME, and single quotation marks are required because there are special characters in the file name.

export database sample.basic using report_file 'Essbase\\App\\Sample\\Basic\\asym.rep' to data_file 'c:\\home\\month2.rpt';

Note: In the file paths in the above Windows example, single quotation marks are required because there are special characters in the file name. Two backslashes ( \\ ) are required by the MaxL Shell to indicate one backslash, because the backslash has a special meaning to the MaxL Shell.

top EXPORT LRO

Export linked reporting object catalog information and binary files from a database to a local or server directory, to prepare for backing up, clearing, or migrating data.
A linked reporting object (LRO) is a link to an external cell note, file, or URL. The link can be attached to any data cell in an Essbase database. You can export and re-import LROs locally or on the server.
Minimum permission required: Read. This statement requires the database to be started.
If you do not specify a full path for an export directory to be created on the client or server, MaxL uses your short directory specification (DBS-EXPORT-DIR) as a suffix, and creates the destination export-directory in the ARBORPATH\app directory with a prefix of appname-dbname-. If you do specify a full path, MaxL creates whatever directory you specify.

Notes:

Examples

export database sample.basic lro to server directory '../home/temp/lros';

Exports LRO-catalog information, and binary files if the database has file-type LROs, to a server directory called home/temp/lros. The directory contains file-type LROs, if applicable, and the LRO-catalog export file lros.exp. These can be brought back into a database using import lro.

export database sample.basic lro to server directory 'exportedLROs';

Exports LRO-catalog information, and binary files if the database has file-type LROs, to a server directory $ARBORPATH/app/sample-basic-exportedLROs. The directory contains file-type LROs, if applicable, and the LRO-catalog export file named sample-basic-exportedLROs.exp. These can be brought back into a database using import lro.

export database sample.basic lro to server directory 'D:\\MaxL\\LROexports\\dir';

On Windows, exports LRO-catalog information to a new directory dir under the existing directory structure D:\MaxL\LROexports. The double backslashes (\\) must be used becasue a single backslash is an escape character to MaxL.

GRANT

Grant a permission, a filter or a stored calculation to a user or a group.

Granting permissions:
At each level (system, application or database) existing roles are replaced. However, the built-in privileges create_user and create_application are not replaced.

Granting filters:
There may be only one filter per user per database. Therefore, granting a filter replaces any filters the user may already have on that database.

Granting calculations:
A user or group may have any number of calculations per database. Therefore, granting a calculation adds it to the user or groupѺs list of calculations. Grant execute any gives the user or group permission to execute all calculations, including the default calculation.

Examples

grant no_access to NewGroup;

grant supervisor to Fiona;

grant designer on application Sample to Fiona;

grant read on database Sample.basic to Fiona;

top IMPORT DATA

Import data from text or spreadsheet data files, with or without a rules file. To import from a SQL data source, you must connect as the relational user name, and use a rules file. When using the import statement, you must specify what should happen in case of an error.
Minimum permission required: Write. This statement requires the database to be started.

Example

import database sample.basic data from data_file "'$ARBORPATH\\app\\sample\\basic\\calcdat.txt'" on error abort;

import database sample.basic data
from data_file '/data/calcdat.txt'
using rules_file '/data/rulesfile.rul'
on error write to '/logs/dimbuild.log';

top IMPORT DIMENSIONS

Import dimensions from text or spreadsheet data files, using a rules file. To import from a SQL data source, you must connect as the relational user name, and use a rules file. When using the import statement, you must specify how error logs should be handled.
Minimum permission required: Write. This statement requires the database to be started.

Example

import database sample.basic dimensions
from data_file '/data/calcdat.txt'
using rules_file '/data/rulesfile.rul'
on error append to '/logs/dimbuild.log';

top IMPORT LRO

Import linked reporting objects (LROs) from the specified output directory created by export lro. The directory contains an ASCII .exp file containing LRO-catalog information, and LRO binary files (if the database from which LROs were exported contained file-type LROs).
Minimum permission required: Write. This statement requires the database to be started.

The specified import directory must come from the results of the export lro operation. The exported LRO-catalog file contains a record of the LRO file locations, cell notes, or URL text, and database index locations to use for re-importing to the correct data blocks.

Example (Windows)

import database sample.basic lro
from server directory 'c:\\essbase\\app\\sample-basic-lros';

import database sample.basic lro
from directory "'$ARBORPATH\\app\\sample-basic-lros'";

Example (UNIX)

import database sample.basic lro
from server directory "'$ARBORPATH/essbase/app/sample-basic-lros'";

From the subdirectory created by export lro in the app directory on the server, both the Windows and UNIX example statements above re-import the LRO-catalog information (and file-type LROs if applicable) that were exported to that location.
Note: In the paths in the second two examples, double quotation marks are used to allow variable expansion in the string IMPORT-DIR, and single quotation marks are required because there are special characters in the path name.

REFRESH CUSTOM DEFINITIONS

Refresh the definitions of custom-defined functions or macros associated with an application, without restarting the application.

This statement re-reads the custom-defined function and macro records on the Agent, and associates newly created functions or macros with the specified application (since the last refresh, or since the last time the application was restarted). Invalidly defined functions and macros are not loaded to the application.

Validation occurs at the application level only, during the refresh (not during creation). There is no validation on the system level.

Example

refresh custom definitions on application Sample;

Loads all valid, newly created local functions and macros for the application Sample.
Note: a local function or macro must have been created using the double naming convention to indicate application context: see create function or create macro for details.

REFRESH OUTLINE

Synchronize the outlines between partitioned databases. Use this in the event that one outline has undergone changes to dimensions, members, or member properties, and you wish to propagate those changes to the partitioned database.

Example

refresh outline on replicated partition sampeast.east to samppart.company 
 apply all;
 
Refreshes the target outline (for Samppart.company database) with any and all changes made to the source outline (Sampeast.east).
refresh outline on replicated partition Sampeast.east to Samppart.company 
apply on dimension update, apply on member rename, apply on member_property  account_type;
 
Refreshes the target outline (for Samppart.company database) with changes made to the source outline (Sampeast.east), reflecting the following update to a dimension: a member tagged Accounts was renamed.

REFRESH REPLICATED PARTITION

Refresh the current replicated-partition database target from the remote (second DBS-NAME) source partition. Database designer privilege for each database is required.

appname.dbname appname.dbname positive integer appname.dbname

Copyright 1991-2002 Hyperion Solutions Corporation. All rights reserved.