Please enable JavaScript to view this site.

A-Shell Reference

ALIAS=newsbr:oldsbr

ALIAS allows you to direct that subroutine newsbr be executed whenever subroutine oldsbr is called by a program. An example of this type of substitution is used in the case of EZSPL, which may be used as a direct replacement for SPOOL. A-Shell contains the C version of EZSPL as standard. Rather than have an identical definition for SPOOL, an alias is defined, saying whenever the line XCALL SPOOL is encountered, treat it as the line XCALL EZSPL.

ALIAS=SPOOL:EZSPL

Note that you can effectively disable a subroutine by aliasing it to a subroutine that does nothing. One such subroutine is PRIV, since the concept of write protection for accesses out of the "project" does not exist under any of the target operating systems for A-Shell.

There is a limit of 50 ALIAS statements.

Note that the ALIAS facility only works when the two subroutines have compatible parameter lists. If you need a subroutine which is similar to one we already offer but with different parameters, you can probably create your own SBX version as a wrapper to the existing one. See SBX Subroutines for details on writing your own subroutines. You may also contact MicroSabio for an estimate to add your routine to the set of standard embedded routines included with A-Shell. Typically these are very inexpensive to add.