HiLMAs reference
Back

Input/Output instructions

Next

SAY

SAY var1[,var2,(var3,length),....][,VAR=string][,FILE=numfile]

[,ROW=][,PAGE=NEW][,CC=varchar]

 

Description

SAY statement display var1, var2, etc. on terminal in interactive environment (CICS, TSO and CMS); print in standard output in batch (MVS or VSE); output can be limited with length for every displayed variable.
vars
can be a string or an integer number (even packed or zoned); only float numbers cannot be directly displayed with Say but must be previously converted in strings with FLO2EDIT; vars can even be a string constant enclosed in quotes.
Up to 20 variables can be displayed with the same SAY, that is in the same line.

With FILE=    this output line can be written on a previously opened file (every environment); FILE parameter is a file number equal to a file number on a previous OPEN statement

With VAR=    this output is written in a string variable (every environment); VAR is equal to the name of this variable. In this way, you can use SAY to concatenate various string in an unique string (i.e. the inverse of PARSE).

With ROW=    this line is written on specified row number (CICS only); must be an integer variable

With PAGE=    and CC=     ASA control character in column 1 can be managed (batch environment)
PAGE=NEW skips to a new page in a printer file, that is writes ASA control character '1' in column 1
CC is for a direct control of this character in column 1 and must be a string variable name that will contain the control character to be used.

 

Parameter specifications

Parameter Name Mode Type coding Remark
1 var1 Input Any C, X, F, A, H, P, Z or const. Variables to display
2 var2 Input Any C, X, F, A, H, P, Z or const.  
3 var3 Input Any C, X, F, A, H, P, Z or const.  
4 length Input String constant  
  up to 20 Output strings Will contain the other variabless to display
  VAR=string Output  String C or X Output is on a string
  FILE=numfile Output      Output is on a record file
  ROW=numrow Input Integer F or const. Change the screen line number (only CICS)
  PAGE=NEW fixed word   Batch only
  CC=varchar Input String C or X or const. const. can be hexadecimal: X'xx'

 

Examples

 


Back Start Next
INT2HALF Top INPUT