PARM

Displays the values of variables that are passed as parameters to any SCL function or routine

Table of Contents

Syntax

PARM

Details

The PARM command displays the values of variables that are passed as parameters to an SCL or routine. This command is valid only when the next contains a function call. Otherwise, the debugger issues a warning.
If a nested function call is encountered — that is, if the parameters passed to a function or routine are themselves function calls — then the PARM command displays the only for the nested function. You have to keep using the PARM command in order to display the list for other function calls. For example, assume that the next executable statement is
str1=substr(upcase(string), min(x,y), max(x,y));
A PARM command first displays the parameter STRING, which is passed to the function UPCASE. A second PARM command displays the parameter list X, Y, which is passed to the function MIN. Subsequent PARM commands would display the parameter lists passed to the function MAX and then to SUBSTR.
Once the values of arguments for a function or routine have been displayed, you cannot repeat the PARM command for the same function unless you are re-executing it.

Example

A PARM command issued at the following statement
call display ('test2', x, y);
generates the following output:
parm
Arguments passed to DISPLAY:
  1 (Character Literal)='test2'
Parameters passed to DISPLAY ENTRY:
  1 X=0
  2 Y=4
Last updated: April 28, 2025