Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
SCAN—Set Command Scan Mode z/OS ISPF Edit and Edit Macros SC19-3621-00 |
|
The SCAN macro command sets scan mode, which controls the automatic replacement of variables in command lines passed to the editor. The SCAN assignment statement either sets the value of scan mode (for variable substitution), or retrieves the value of scan mode and places it in a variable. SyntaxMacro command syntax .-ON--. >>-ISREDIT--SCAN--+-----+-------------------------------------->< '-OFF-'
Scan mode is initialized to ON when a macro is started. Assignment statement syntax >>-ISREDIT--(varname)-- = --SCAN------------------------------->< .-ON--. >>-ISREDIT--SCAN-- = --+-----+--------------------------------->< '-OFF-'
Return codes
ExamplesTo set a line whose number is
in variable &LNUM to:
set
scan mode off and issue the LINE command with &&SYSDATE as
the CLIST function name. The CLIST processor strips off the first &,
but, because scan mode is off, the editor does not remove the second &:;
Because the ISPEXEC call interface for REXX EXECs allows you to specify parameters as symbolic variables, a single scan always takes place before the syntax check of a statement. Therefore, the rule of using two ampersands (&) before variable names to avoid substitution of variable names also applies to REXX EXECs. |
Copyright IBM Corporation 1990, 2014
|