## 8.5.2 Dollar Sign Edit Descriptor

In a format specification, the dollar sign character ($) modifies the carriage control specified by the first character of the record. On VAX processors, it only affects files for which the 'FORTRAN' carriage control attribute is in effect. On Tru64 UNIX systems, it also affects files if 'LIST' is in effect.

In an input statement, the $ descriptor is ignored.

In an output statement, the following rules apply:

- If the first character of the record is 0, 1, or ASCII NUL, the $ descriptor is ignored.

- If the first character of the record is a space or plus sign (+), the $ descriptor suppresses carriage return (after printing the record).

For terminal I/O, whenever trailing carriage return control is suppressed by the $ descriptor, a typed response follows output on the same line.

Consider the following statements:

         TYPE 100

    100  FORMAT (' ENTER RADIUS VALUE ',$)

         ACCEPT 200, RADIUS

    200  FORMAT (F6.2)

The resulting formatted message appears as follows:

    ENTER RADIUS VALUE

Your response (for example, "12.") can then go on the same line:

    ENTER RADIUS VALUE    12.

For More Information:

For details on carriage control, see Section 8.6.

Previous Page Next Page Table of Contents