Center STATEMENT

PURPOSE:  The CENTER statement prints the specified material centered on any point on the output line.

SYNTAX

CENTER [ON n] item AT ae [,NOCR] [HUSH] [IF; UNLESS clause] [iterate clause]

n

is a number or declared field that gives the number of the report to which the statement applies.

item

can be a constant, literal, variable name, date expression, arithmetic expression, string expression, function, or field, so long as the resultant value is a string.

If an item is a literal, it must be in double or single quotation marks.

ae

can be a number or an arithmetic expression that equates to a number from 1 to 500.  It is the point on the line at which the object is centered.

NOCR

suppresses the carriage return-line feed that usually prints after the statement is executed.

Example

CENTER "PRODUCED ON: "+@DATSTR(@DATE,"MMM DD, YYYY") AT 40

NOTES:  The CENTER statement can be included in a PRINT statement.

SEE ALSO:  PRINT Statement