02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 9-4 Contents of character data fields on output<br />

Descriptor<br />

Width/length<br />

relationship<br />

Result<br />

A width length Output the value, preceded by<br />

blanks.<br />

R width length Output the value, preceded by<br />

blanks.<br />

I/O formatting<br />

Edit descriptors<br />

Examples of the use of character edit descriptors on input are provided in Table 9-5. In the<br />

table, b represents a blank and z represents a Null.<br />

Table 9-5 A and R edit descriptors: input examples<br />

Descriptor Input field Variable length Value stored<br />

A3 XYZ 3 XYZ<br />

R3 XYZ 4 zXYZ<br />

A5 ABCbb 10 ABCbbbbbbb<br />

R9 RIGHTMOST 4 MOST<br />

R8 CHAIRbbb 8 CHAIRbbb<br />

R4 CHAIR 8 zzzzCHAI<br />

A4 ABCD 2 CD<br />

Chapter 9 211

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

Saved successfully!

Ooh no, something went wrong!