HP 3000 Manuals

ACCEPT Statement (Executable) [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

ACCEPT Statement (Executable) 

The ACCEPT statement transfers input data from the standard input unit to
an internal storage area.  Input data is transferred under sequential
mode access.  The ACCEPT statement cannot be connected to user-specified
logical units.

[]
---------------------------------------------------------------------------------------------- | | | | | Item | Description/Default | Restrictions | | | | | ---------------------------------------------------------------------------------------------- | | | | | fmt | Format designator. | See "Semantics". | | | | | ---------------------------------------------------------------------------------------------- | | | | | namelist_group_name | Symbolic name specifying a | None. | | | list of variables or arrays | | | | previously declared in a | | | | NAMELIST statement. | | | | | | ---------------------------------------------------------------------------------------------- | | | | | variable | Variable location where data | None. | | array_element | is to be stored. | | | character_substring | | | | array_name | | | | scalar_record_field_name | | | | | | | ---------------------------------------------------------------------------------------------- | | | | | implied_do_list | A list of variables in an | None. | | | implied DO loop. See "DO | | | | Statement (Executable)" for | | | | details. | | | | | | ---------------------------------------------------------------------------------------------- Semantics The format designator, fmt, must be one of the following: * The statement label of a FORMAT statement. * An INTEGER*4 variable to which the statement label of a FORMAT statement has been assigned through an ASSIGN statement. * A character or noncharacter array name that contains the representation of a format specification (use of a noncharacter array is an extension to the ANSI 77 standard). * A character expression that evaluates to the representation of a format specification. * An asterisk, which specifies list-directed input. See "List-Directed Input/Output" . The ACCEPT statement is an extension to the ANSI 77 standard. Examples Notes --------------------------------------------------------------------------------------- ACCEPT 100,number,string number and string are input according to 100 FORMAT(I3,A10) the FORMAT statement 100. ACCEPT *,var1,var2,var3(1) var1, var2, and var2 are input according to list-directed formating. ACCEPT NAME1 The ACCEPT statement transfers input data to the entities associated with the NAME1 namelist group.


MPE/iX 5.0 Documentation