The SCALARS statement is primarily used for 'debugging' when the user is developing SQL queries but may also be used as an easy way of looking at a number of scalar variables.
The keyword
SCALARS
on its own will display all the scalars
SCALARS followed by a comma separated list of scalar variables will display just those variables e.g.
SCALARS $x, $z