A string of digits is interpreted in the decimal base number system when a numeric interpretation is appropriate.
__________ ______________________
| | |
|_Character|__Name_of_Character___|
| | |
| | Blank |
| _________| Equals |
| + | Plus |
| - | Minus |
| * | Asterisk |
| / | Slash |
| ( | Left Parenthesis |
| ) | Right Parenthesis|
| . | Decimal Point |
| , | Comma |
| $ | Currency Symbol |
| ' | Apostrophe |
| : | Colon |
|__________|______________________|
Except for the currency symbol, the graphics used for the forty-nine characters must be as given in 3.1.1, 3.1.2, and 3.1.4. However, the style of any graphic is not specified.
The character positions in a line are called columns and are numbered consecutively 1, 2, through 72. The number indicates the sequential position of a character in the line, beginning at the left and proceeding to the right. Lines are ordered by the sequence in which they are presented to the processor. Thus, a program unit consists of a totally ordered set of characters.
A comment line does not affect the executable program in any way and may be used to provide documentation.
Comment lines may appear anywhere in the program unit. Comment lines may precede the initial line of the first statement of any program unit. Comment lines may appear between an initial line and its first continuation line or between two continuation lines.
Blank characters preceding, within, or following a statement do not change the interpretation of the statement, except when they appear within the datum strings of character constants or the H or apostrophe edit descriptors in FORMAT statements. However, blank characters do count as characters in the limit of total characters allowed in any one statement.
Within a program unit that permits the statements:
Within the specification statements of a program unit, IMPLICIT statements must precede all other specification statements except PARAMETER statements. Any specification statement that specifies the type of a symbolic name of a constant must precede the PARAMETER statement that defines that particular symbolic name of a constant; the PARAMETER statement must precede all other statements containing the symbolic names of constants that are defined in the PARAMETER statement.
The last line of a program unit must be an END statement.
____________________________________________________________ | | | | | PROGRAM, FUNCTION, SUBROUTINE, or | | | ______________BLOCK_DATA_Statement_____________| | | | | | | | | | IMPLICIT | | | | | Statements | | | | PARAMETER |_________________| | Comment | FORMAT | Statements | Other | | Lines | and | | Specification | | | ENTRY | | Statements | | | Statements |______________|_________________| | | | | Statement | | | | | Function | | | | DATA | Statements | | | | Statements |_________________| | | | | Executable | | | | | Statements | |__________________________________________________________| | | |______________________END_Statement_______________________|
Figure 1 is a diagram of the required order of statements and comment lines for a program unit. Vertical lines delineate varieties of statements that may be interspersed. For example, FORMAT statements may be interspersed with statement function statements and executable statements. Horizontal lines delineate varieties of statements that must not be interspersed. For example, statement function statements must not be interspersed with executable statements. Note that an END statement is also an executable statement and must appear only as the last statement of a program unit.
A transfer of control is an alteration of the normal execution sequence. Statements that may cause a transfer of control are:
The effect of these statements on the execution sequence is described in Sections 11, 12, and 15.
The normal execution sequence is not affected by the appearance of nonexecutable statements or comment lines between executable statements. Execution of a function reference or a CALL statement is not considered a transfer of control in the program unit that contains the reference, except when control is returned to a statement identified by an alternate return specifier in a CALL statement. Execution of a RETURN or END statement in a referenced procedure, or execution of a transfer of control within a referenced procedure, is not considered a transfer of control in the program unit that contains the reference.
In the execution of an executable program, a procedure subprogram must not be referenced a second time without the prior execution of a RETURN or END statement in that procedure.
NDP77
http://www.ndp77.net
webmaster MFA (main)
webmaster@ndp77.net