10.07.2015 Views

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

PGI Fortran Reference manual - The Portland Group

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Fortran</strong> StatementsEOR = labellabel must be the statement label of a branch target statement that appears in the samescoping unit as the WAIT statement.EOR= specifier has no effect if the pending data transfer operation is not a nonadvancingREAD.ERR = labellabel must be the statement label of a branch target statement that appears in the samescoping unit as the WAIT statement.ID = scalar_in_varscalar_in_var is the identifier of a pending data transfer operation for the specified unit.‣ If the ID= specifier appears, a wait operation for the specified data transfer operation isperformed.‣ If the ID= specifier is omitted, wait operations for all pending data transfers for thespecified unit are performed.IOMSG = iomsg-variomsg-var is an I/O message variable.IOSTAT =scalar-int-varscalar_in_var is the identifier of a pending data transfer operation for the specified unit.For more information on IOSTAT, ERR=, EOR=, END=, and IOMSG=, refer to the READ andWRITE statements.DescriptionThis statement performs a wait operation for specified pending asynchronous data transferoperations.<strong>The</strong> CLOSE, INQUIRE, and file positioning statements may also perform wait operations.Execution of a WAIT statement specifying a unit that does not exist, has no file connected toit, or that was not opened for asynchronous input/output is permitted, provided that the WAITstatement has no ID= specifier. This type of WAIT statement does not cause an error or end-offilecondition to occur.No specifier shall appear more than once in a given wait-spec-list.ExamplesINTEGER SCORE(30)CHARACTER GRADE(30)WHERE ( SCORE > 60 )GRADE = 'P'ELSE WHEREGRADE = 'F'END WHERE<strong>PGI</strong> <strong>Fortran</strong> <strong>Reference</strong> Guide 63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!