z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


RANGE_CMD—Query a Command That You Entered

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The RANGE_CMD assignment statement identifies the name of a line command entered from the keyboard and processed by a macro.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(varname)-- = --RANGE_CMD--------------------------><

varname
The name of a variable to contain the line command that you entered.

Description

The macro must first issue a PROCESS command to identify all line commands to be processed by this macro. A particular line command within a range can be found by using the RANGE_CMD. For instance, if this PROCESS command is issued by a macro:
PROCESS RANGE Q $
The RANGE_CMD statement returns either a Q or a $. If a range such as Q5 is entered, only Q is returned.

Return codes

0
Normal completion
4
Line command not set
8
Line command setting not acceptable
20
Severe error

Examples

To determine which line command (* or #) you entered and to process the line command (defined by the macro writer):
ISREDIT MACRO NOPROCESS
ISREDIT PROCESS RANGE * #
ISREDIT (CMD) = RANGE_CMD
IF &STR(&CMD) = &STR(*) THEN -
        ...
ELSE IF &STR(&CMD) = &STR(#) THEN -
        ...

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014