Chapter Contents

Previous

Next
PARM

PARM



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


Syntax
Details
Example
See Also

Syntax

PARM


Details

The PARM command displays the values of variables that are passed as parameters to an SCL function or routine. This command is valid only when the next executable statement 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 parameter list only for the nested function. You have to keep using the PARM command in order to display the parameter 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.

Note:   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.  [cautionend]


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

See Also

ARGS

DESCRIBE

EXAMINE

PUTLIST


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.