See the Dyalog online documentation for:
- a complete list of categorised system functions with descriptions
- a complete list of system variables with descriptions
- a complete list of system functions and variables
The Dyalog online documentation has a complete list of system variables.
System variables describe the state of the system.
Some variables are static and cannot change.
Some variables are dynamic and can change without direct user intervention.
The others can be changed by the user.
Of course, the majority of the time you can refer to the help system to remind yourself exactly how each of these works. There are many system variables built up over the decades, many of which are kept mostly for backwards compatibility.
In the following table, the system variables you are most likely to come across in existing code are highlighted in red.
⎕A ⍝ Upper-case alphabet
⎕D ⍝ Digits 0-9
⎕AN ⍝ User's ID
⎕NULL ⍝ NULL constant
⎕TC ⍝ BackSpace, LineFeed, CarriageReturn
⎕UCS⎕TC ⍝ BackSpace, LineFeed, CarriageReturn
8 10 13
⎕AV ⍝ List of APL characters
⎕DM ⍝ Last error message
⎕DMX ⍝ ⎕DM+⎕EN in a thread safe form
⎕EN ⍝ Last error number
⎕RTL ⍝ Response time limit
⎕SE ⍝ The session object
⎕TS ⍝ Current date/time
⎕THIS ⍝ Current object
⎕AVU characters to use in ⎕AV
⎕CT Comparison Tolerance
⎕DCT Decimal Comparison Tolerance
⎕DIV how to handle division by 0
⎕FR float decimal system in use
⎕IO index origin
⎕ML Migration Level
⎕LX Latent eXpression
⎕PATH where to find functions
⎕RL random number generation seed value
⎕DIV←0 ⍝ Default
DOMAIN ERROR: Divide by zero
The number of significant digits in the display of numeric output.
The Print Width
⎕PW sets the number of characters in the session before wrapping to a new line.
It can be assigned to directly, or set to automatically adjust based on the IDE windows size. In the Microsoft Windows IDE, go to Options→Configure→Session and tick Auto PW. In the RIDE, go to Edit→Preferences→General→Session and tick Auto PW.
In this course, we try to introduce relevant quad-names in appropriate contexts. However, not every quad-name is shown in this tutorial.
A complete collection of categorised system functions is available from the Dyalog online documentation.
Further treatment of system functions is provided in Chapter L of Mastering Dyalog APL.