Difference between revisions of "ALIAS"

From Recital Documentation Wiki
Jump to: navigation, search
(Products)
 
Line 30: Line 30:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Applications]]
 
[[Category:Applications]]
 
[[Category:Applications Commands]]
 
[[Category:Applications Commands]]

Latest revision as of 13:59, 10 November 2009

Purpose

Define a User Defined Command (UDC)


Syntax

ALIAS [<expC> [<command>]]


See Also

!, !!, FUNCTION, KEYWORD, RUN, RUN(), SPAWN


Description

The ALIAS command allows for the definition of User Defined Commands (UDCs). The ALIAS command, on its own, causes all active UDCs to be listed.

<expC>

The <expC> is the name to call the user-defined command. The ALIAS <expC> without a subsequent <command> statement removes that UDC.

<command>

The <command> character expression can contain multiple Recital/4GL commands, each separated with a ';'. Up to nine parameters may be substituted by preceding the parameter number with a '%' character, e.g. %1 %2 etc. Parameter %0 matches the complete line following the command name.


Example

alias lm "list memory" && defines lm
alias lo "list off"
alias l "list off for ord_id = [%1]"


Products

Recital Server, Recital