12.07.2015 Views

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

PGI Fortran - Servidor WWW del Cluster Ladon-Hidra

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.

The X control specifies a number of characters to skip forward and that the next character to bewritten to or from is n characters forward from the current position:nXThe following example uses the X format specifier:NPAGE = 19WRITE ( 6, 90) NPAGE90 FORMAT('1PAGE NUMBER ,I2, 16X, 'SALES REPORT, Cont.')produces:PAGE NUMBER 19SALES REPORT, Cont.The following example shows use of the T format specifier:PRINT 2525 FORMAT (T41,'COLUMN 2',T21,'COLUMN 1')produces:COLUMN 1 COLUMN 25.5.2.19 Z Format Control Hexadecimal ValuesThe O and Z field descriptors transfer octal or hexadecimal values and can be used with anyinteger data type. They have the form:Ow[.m] and Zw[.m]where w specifies the field width and m indicates minimum field width on output.On input, the external field to be input must contain (unsigned) octal or hexadecimal charactersonly. An all-blank field is treated as a value of zero. If the value of the external field exceeds therange of the corresponding list element, an error occurs.On output, the O and Z field descriptors transfer the octal and hexadecimal values, respectively, ofthe corresponding I/O list element, right-justified, to an external field that is w characters long. Ifthe value to be transmitted does not fill the field, leading spaces are inserted; if the value is toolarge for the field, the entire field is filled with asterisks. If m is present, the external field consistsof at least m digits, and is zero-filled on the left if necessary. Note that if m is zero, and the internalrepresentation is zero, the external field is blank-filled.5.5.2.20 Slash Format Control / – End of RecordThe slash (/) control indicates the end of data transfer on the current record.166 Chapter 6

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

Saved successfully!

Ooh no, something went wrong!