Documentation Conventions
- Last Updated: June 4, 2019
- 5 minute read
- OpenEdge
- Documentation
The OpenEdge library uses the following documention conventions:
- ABL documentation conventions
- Typographical conventions
- Examples of syntax descriptions
- OpenEdge messages
ABL documentation conventions
OpenEdge provides a special purpose programming language for building
business applications. In the documentation, the formal name for this language is
ABL (Advanced Business Language). With few
exceptions, all keywords of the language appear in all UPPERCASE, using a font that is appropriate to the context. All other
alphabetic language content appears in mixed case.
For the latest documentation updates go to https://docs.progress.com.
References to ABL compiler and run-time features
ABL is both a compiled and an interpreted language that executes in a run-time engine. The documentation refers to this run-time engine as the ABL Virtual Machine (AVM). When the documentation refers to ABL source code compilation, it specifies ABL or the compiler as the actor that manages compile-time features of the language. When the documentation refers to run-time behavior in an executing ABL program, it specifies the AVM as the actor that manages the specified run-time behavior in the program.
For example, these sentences refer to the ABL compiler's allowance for parameter passing and the AVM's possible response to that parameter passing at run time: "ABL allows you to pass a dynamic temp-table handle as a static temp-table parameter of a method. However, if at run time the passed dynamic temp-table schema does not match the schema of the static temp-table parameter, the AVM raises an error." The following sentence refers to run-time actions that the AVM can perform using a particular ABL feature: "The ABL socket object handle allows the AVM to connect with other ABL and non-ABL sessions using TCP/IP sockets."
References to ABL data types
ABL provides built-in data types, built-in class data types, and user-defined class data types. References to built-in data types follow these rules:
- Like most other keywords, references to specific built-in
data types appear in all
UPPERCASE, using a font that is appropriate to the context. No uppercase reference ever includes or implies any data type other than itself. - Wherever integer appears, this is
a reference to the
INTEGERorINT64data type. - Wherever character appears, this
is a reference to the
CHARACTER,LONGCHAR, orCLOBdata type. - Wherever decimal appears, this
is a reference to the
DECIMALdata type. - Wherever numeric appears, this
is a reference to the
INTEGER,INT64, orDECIMALdata type.
References to built-in class data types appear in mixed case with
initial caps, for example, Progress.Lang.Object. References to user-defined class data types
appear in mixed case, as specified for a given application example.
Typographical conventions
This documentation uses the following typographical and syntax conventions:
| Convention | Description |
|---|---|
| Bold | Bold typeface indicates commands or characters the user types, provides emphasis, or the names of user interface elements. |
| Italic | Italic typeface indicates the title of a document, or signifies new terms. |
| SMALL, BOLD CAPITAL LETTERS | Small, bold capital letters indicate OpenEdge key functions and generic keyboard keys; for example, GET and CTRL. |
| KEY1+KEY2 | A plus sign between key names indicates a simultaneous key sequence: you press and hold down the first key while pressing the second key. For example, CTRL+X. |
| KEY1 KEY2 | A space between key names indicates a sequential key sequence: you press and release the first key, then press another key. For example, ESCAPE H. |
| Syntax: | |
Fixed width
|
A fixed-width font is used in syntax, code examples, system output, and file names. |
| Fixed-width italics | Fixed-width italics indicate variables in syntax. |
| Fixed-width bold | Fixed-width bold italic indicates variables in syntax with special emphasis. |
UPPERCASE fixed width
|
ABL keywords in syntax and code examples are almost always shown in upper case. Although shown in uppercase, you can type ABL keywords in either uppercase or lowercase in a procedure or class. |
| Period (.) or colon (:) | All statements except DO, FOR, FUNCTION,
PROCEDURE, and REPEAT end with a period. DO, FOR, FUNCTION,
PROCEDURE, and REPEAT statements can end with either a
period or a colon. |
[
]
|
Large brackets indicate the items within them are optional. |
| [ ] | Small brackets are part of ABL. |
{
}
|
Large braces indicate the items within them are required. They are used to simplify complex syntax diagrams. |
| { } | Small braces are part of ABL. For example, a called external procedure must use braces when referencing arguments passed by a calling procedure. |
|
|
A vertical bar indicates a choice. |
...
|
Ellipses indicate repetition: you can choose one or more of the preceding items. |
Examples of syntax descriptions
In this example, ACCUM is a keyword,
and aggregate and
expression are
variables:
|
FOR is one of the statements that can end with
either a period or a colon, as in this example:
|
In this example, STREAM
stream, UNLESS-HIDDEN, and NO-ERROR are optional:
|
In this example, the outer (small) brackets are part of the language, and the inner (large) brackets denote an optional item:
Syntax
|
A called external procedure must use braces when referencing compile-time arguments passed by a calling procedure, as shown in this example:
Syntax
|
In this example, EACH,
FIRST, and LAST are optional, but you can choose only one of
them:
|
In this example, you must include two expressions, and optionally you can include more. Multiple expressions are separated by commas:
Syntax
|
In this example, you must specify MESSAGE and at least one expression or SKIP
[
( n )
], and any number of additional
expression or SKIP
[
( n )
] is
allowed:
|
In this example, you must specify {include-file,
then optionally any number of argument or &argument-name = "argument-value", and then terminate with }:
|
Long syntax descriptions split across lines
Some syntax descriptions are too long to fit on one line. When syntax descriptions are split across multiple lines, groups of optional and groups of required items are kept together in the required order.
In this example, WITH is followed by six optional
items:
|
Complex syntax descriptions with both required and optional elements
Some syntax descriptions are too complex to distinguish required and optional elements by bracketing only the optional elements. For such syntax, the descriptions include both braces (for required elements) and brackets (for optional elements).
In this example, ASSIGN requires either one or more field entries
or one record. Options available with field or record are
grouped with braces and brackets:
|
OpenEdge messages
OpenEdge displays several types of messages to inform you of routine and unusual occurrences:
- Execution messages inform you of errors encountered while OpenEdge is running a procedure; for example, if OpenEdge cannot find a record with a specified index field value.
- Compile messages inform you of errors found while OpenEdge is reading and analyzing a procedure before running it; for example, if a procedure references a table name that is not defined in the database.
- Startup messages inform you of unusual conditions detected while OpenEdge is getting ready to execute; for example, if you entered an invalid startup parameter.
After displaying a message, OpenEdge proceeds in one of several ways:
- Continues execution, subject to the error-processing actions that you specify or that are assumed as part of the procedure. This is the most common action taken after execution messages.
- Returns to the Procedure Editor, so you can correct an error in a procedure. This is the usual action taken after compiler messages.
- Halts processing of a procedure and returns immediately to the Procedure Editor. This does not happen often.
- Terminates the current session.
OpenEdge messages end with a message number in parentheses. In this
example, the message number is 200:
|
If you encounter an error that terminates OpenEdge, note the message number before restarting.
Obtaining more information about OpenEdge messages
In Windows platforms, use OpenEdge online help to obtain more information about OpenEdge messages. Many OpenEdge tools include the following Help menu options to provide information about messages:
- Choose to display detailed descriptions of the most recent OpenEdge message and all other messages returned in the current session.
- Choose and then type the message number to display a description of a specific OpenEdge message.
- In the Procedure Editor, press the HELP key or F1.
On UNIX platforms, use the OpenEdge pro command to start a single-user mode character OpenEdge client
session and view a brief description of a message by providing its number.
To use the pro command to obtain a message description by message number:
- Start the Procedure Editor:
OpenEdge-install-dir/bin/pro - Press F3 to access the menu bar, then choose .
- Type the message number and press ENTER. Details about that message number appear.
- Press F4 to close the message, press F3 to access the Procedure Editor menu, and choose .