PRINT (print one-line message)


PRINT causes a one-line message, the value of a variable, or a combination of these to be printed in a report whenever the PRINT statement is processed.

Syntax

PRINT [V1|'string'|V1..Vn 'string'|fieldName]

where

  • PRINT (with no parameters) prints a blank line.
  • V1 is a variable that is assigned a value by the SET statement. The value of the variable is printed.
  • 'string' is a literal character string enclosed in single quotation marks. The string can contain alphanumeric, blank, or special characters.
  • fieldName is the name of a field in a CMRDETL, CTGDETL, or CMRSTATS record. See MainView for CICS PERFORMANCE REPORTER Data Reference. The field value is printed.

Example

Example
SET DOWN  = '           * * * MAINVIEW for CICS NOT ACTIVE * * *'
SET TITLE = 'MAINVIEW for CICS GLOBAL PERFORMANCE ANALYSIS'
SELECT TYPE CC RECORDS FROM CMRSTATX
USING CMRDATE CMRTIME T6FSUCP T6FSTCCP T6FSJCCP T6FSKCCP T6FSOSCP
   IF T6FSFLAG = 'L' THEN BEGIN
               PRINT
               PRINT DOWN
               PRINT
                END;
   REPORT
 END

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*