Returns the alias name of the current or a specified work area.

Syntax

ALIAS([<alias>])

<alias>

The work area you want to check. (If <alias> is a work area alias name, there is no reason to use this function because that alias name is what the function will return.)

Description

ALIAS( ) returns the alias name of any work area within the current workset, in all uppercase. If no table is opened in the specified work area, ALIAS( ) returns an empty string ("").

Routines that do work in other work areas usually save the current work area before switching, and then switch back when done. Use ALIAS( ) to get the name of the current work area, then switch back using the SELECT command.

OODML

There is no concept of the "current" Query object. You may refer to any Query object at any time through its object reference.