TYPE program instruction TYPE program instruction Syntax TYPE output_specification, ..., output_specification Function Display the information described by the output specifications on the system terminal. A blank line is output if no argument is provided. Usage Considerations No output is generated if the MESSAGES system switch is disabled. Program execution normally waits for the output to be completed before continuing. There is an output specification described below that can be used to prevent waiting if it is undesirable for execution to be delayed. The output from a single TYPE instruction cannot exceed 512 characters.
(The /S format control specifier described below can be used to output longer messages.) Parameter An output_specification can consist of any of the following components (in any order) separated by commas: 1. A string expression. 2. A real-valued expression, which is evaluated to determine a value to be displayed. 3. Format-control information, which determines the format of the output message. Details The following format-control specifiers can be used to control the way in which numeric values are displayed. These settings remain in effect for the remainder of the instruction, unless another specifier is used to change their effect.
For all these display modes, if a value is too large to be displayed in the specified field width, the field is filled with asterisk characters (*). /D Use the default format, which displays values to full precision with a single leading space. (Scientific notation is used for values greater than or equal to 1,000,000.) NOTE: The following format specifications accept a zero as the field width (n). That causes the actual field size to vary to fit the value, and causes all leading spaces to be suppressed. That is useful when a value is displayed within a line of text or at the end of a line. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 550