• Aucun résultat trouvé

VS FORTRAN Features

Dans le document FORMAT (3(1) STOP (Page 31-36)

1978 ANSI

Complies with standards.

1966 ANSI

Complies with standards.

Optimized Object Code

Enables faster execution because four levels of optimization are available.

Reentrant Compiler and I/O Library

Offers virtual storage savings because the compiler and many library modules can be shared concurrently by many problem programs.

Cross-Compilation

Enables flexible system use because you can compile on one of the supported operating systems, link-edit, and execute on another supported system.

Upward Compatibility

Enables valid source programs written in the old language to be link-edited to execute with programs written in current language; old programs can make use of the VS FORTRAN library routines.

Warning: Programs compiled with versions of VS FORTRAN prior to Release 3.0 that reference a subprogram with character-type arguments, must be recompiled with VS FORTRAN Release 3.0 and later. Character subprograms compiled with versions of VS FORTRAN prior to Release 3.0 must be recompiled. Any program compiled with versions of VS FORTRAN prior to Release 3.0 that references the intrinsic character manipulation functions CHAR, LEN, INDEX, LGE, LGT, LLE, or LLT, must be recompiled.

VSAM Capabilities

Let you access key sequenced (KSDS), entry sequenced (ESDS), and relative record (RRDS) files directly from the VS FORTRAN program.

INCLUDE Statements

Let you place prewritten sequences of code inline in your programs.

INCLUDE statements can be selectively activated during compilation.

Bit String Manipulation Functions

Provide for interrogation and manipulation of integer data on a bit-by-bit basis.

DC CompHer Option

Defines the names of common blocks to be allocated at execution time. This allows specification of very large common blocks that can reside in the additional storage space available through MVS/XA.

Formatted Traceback

Provides debugging information in sentence form.

DEBUG Execution-Time Option

Allows compiled programs to execute under the control of VS FORTRAN Interactive Debug.

Free-Form Source Option

In VS FORTRAN, both free format and fixed format are available. You can use whichever you prefer when coding new programs, and existing programs can always be recompiled without change to their source format. For more details, see "Using Fixed- and Free-Form Input" on page 7.

Language Flagger

Helps you ensure that VS FORTRAN programs conform to the selected level of the current FORTRAN standard.

Symbolic Dump at Abend

Provides a symbolic dump of variables at abnormal termination; a symbolic dump of variables can also be requested on the object time error unit.

Chapter 1. Introducing VS FORTRAN 5

Asynchronous Input/Output Statements and Options

Enable you to transfer unformatted data between external sequential files and arrays in your FORTRAN program and, while the data transfer is taking place, continue other processing (MVS only).

Alternate Mathematical Library

Gives more precision for some mathematical functions.

NAMELIST Statement

Specifies I/O list of data names.

Character and N oncharacter Data Types

Allowed in the same common block and in an equivalence relationship. In addition, you may increase (by compiler option) character data type length from 500 bytes to·a maximum of 32767 bytes.

Extended Error Handling

Gives you control over program execution after an error.

FORTRAN Language Level 77

OPEN, CLOSE, and INQUIRE Statements Let you define and control FORTRAN files.

Internal Files

Let you format records in virtual storage.

IF Statements

Specify alternate paths of execution, through arithmetic, logical, and block IF (including ELSE, ELSE IF, END IF) statements.

Character Data Type

Provides flexible and direct control of string data by means of:

• Concatenation

• Substring

• Internal file PARAMETER Statement

Defines named constants.

Intrinsic Functions

Include generic functions, arithmetic functions, and character functions.

IMPLICIT Statement

Provides user-specified default data type declaration.

Expressions

Allow valid combinations of arithmetic, character, and logical variables, and other expressions.

DO Statement

Gives a convenient way to program loops; integer, real, and double precision DO variables are allowed; negative incrementation parameter is allowed.

PROGRAM Statement Names a main program.

GENERIC Statement

Specifies generic function names.

INTRINSIC Statement

Explicitly defines intrinsic functions.

SAVE Statement

Saves values in named common blocks, variables, or arrays after a called program completes executing.

Edit Descriptors

Provide an extensive set of edit descriptors.

List-Directed Formatting

Provides default formatting.

Variable Formats

Let you construct 110 formats at execution time.

FORTRAN Language Level 66

GENERIC Statement

Specifies generic function names.

Ampersand (&)

Provided for use as special character.

DEFINE FILE Statement

Specifies a direct access file.

FIND Statement

Efficiently locates next input record in a direct access file.

PUNCH Statement

Provides installation-dependent WRITE statement.

Using Fixed- and Free-Form Input

Fixed-form input is the traditional way to code FORTRAN programs; the FORTRAN Coding Form is designed to help guide you in fixed-form program preparation ..

Chapter 1. Introducing VS FORTRAN 7

mM Extension

If you're using free-form input, you can enter your source program into the file, line by line, according to the rules for free-form source programs.

The maximum line length you can enter is 80 characters; however, your source statements (excluding statement numbers and statement break characters) can be up to 1320 characters long.

You must ensure that sequence numbers do not appear in your free-form source (columns 73 through 80).

'___ _ _ _ _ _ _ _ _ _ _ End of IBM Extension _ _ _ _ _ _ _ _ _ _ ...

For reference documentation about VS FORTRAN fixed- and free-form input, see VS FORTRAN Language and Library Reference.

Chapter 2. Referencing Data as Variables, Arrays, and Constants

Dans le document FORMAT (3(1) STOP (Page 31-36)