Type STATEMENT

PURPOSE:  The TYPE statement is used to display information at the terminal while the PM is executing.

SYNTAX

TYPE \\items [@format]\\, [NOCR; NOSKIP] [HUSH] [IF; UNLESS clause] [iterate clause]

items

is displayed at the terminal.  Each object in the list can have an accompanying picture format.  Any of the following can be an object:

System, global, declared, or Data Set (DS) fields

Constant

“literal”

Arithmetic expression

nB (number of blanks) or nS (number of spaces)

n "literal"

If a literal is included, it must be enclosed in matching single or double quotation marks.  If no object is given, just a carriage return-line feed will be produced at the terminal.

format

can be either a literal (representing a picture format) or n (which is the number of a picture format declared with a PICTURE statement in the DECLARE section).  The literal or n must be preceded by an "at sign" (@).

NOCR, NOSKIP

suppresses the automatic carriage return-line feed at the end of the object list so that either additional TYPE statements produce output on the same line or input for a subsequent ACCEPT statement can be entered on the same line.

Example

TYPE "ENTER NUMBER OF LABELS ACROSS (1 OR 3):",NOCR
ACCEPT NO.LABELS
TYPE "PROGRAM RUNNING AT ", @TIME, "," ,1B,@CDATE

NOTES:  If an object has been defined either in a SD or a declared field statement with both print picture (PP) and output edit (OE), the output edit is applied first.

TYPE can use the strings stored in the @LP system field series to control output.

SEE ALSO:  ACCEPT, PICTURE Statements, PRINT Statement, Picture Formats, @LP system field series.