A newer version of this document is available. Customers should click here to go to the newest version.
ACCEPT
Statement: Transfers input data.
Formatted:
ACCEPT form[,io-list]
Formatted - List-Directed:
ACCEPT *[,io-list]
Formatted - Namelist:
ACCEPT nml
form  |  
      Is the nonkeyword form of a format specifier (no FMT=).  |  
     
io-list  |  
      Is an I/O list.  |  
     
*  |  
      Is the format specifier indicating list-directed formatting.  |  
     
nml  |  
      Is the nonkeyword form of a namelist specifier (no NML=) indicating namelist formatting.  |  
     
The ACCEPT statement is the same as a formatted, sequential READ statement, except that an ACCEPT statement must never be connected to user-specified I/O units. You can override this restriction by using environment variable FOR_ACCEPT.
Example
In the following example, character data is read from the implicit unit and binary values are assigned to each of the five elements of array CHARAR:
     CHARACTER*10 CHARAR(5)
     ACCEPT 200, CHARAR
200  FORMAT (5A10)