Picture STATEMENT

PURPOSE:  The PICTURE statement is used to describe a format for use by PRINT and TYPE statements in the PM object.  PICTURE statements can appear only in the DECLARE section of a PM.  This is useful where you want many fields to be printed using the same format, so you don’t have to type it in every time.

SYNTAX

PICTURE n /IS/ "format"

n

is any number from 1 to 99999.  This is the number that will be used in later statements to reference the given format.

"format"

can be any format, so long as it is appropriate to the data type for which it will be used.  The format must be enclosed in quotation marks.

Example

DECLARE SECTION
PICTURE 4 IS "$ZZZ,ZZZ.DD"
DETAILS SECTION
PRINT 10B, TITLE_CODE:M, 3B, YTD_SALES:M@4

SEE ALSO:  Picture Formats