Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
PROMPT z/OS TSO/E REXX Reference SA32-0972-00 |
||||||||||||||||||||||||||||||||||||||||
>>-PROMPT(-+--------+-)---------------------------------------->< '-option-' PROMPT returns the value ON or OFF, which indicates the setting of prompting for the exec. You
can use the following options to set prompting on or off for interactive
TSO/E commands, provided your profile allows for prompting. Only
when your profile specifies PROMPT, can prompting be made available
to TSO/E commands issued in an exec.
Here are some examples:
You can use the PROMPT function only in REXX execs that run in the TSO/E address space. Environment Customization Considerations: If you use IRXINIT to initialize language processor environments, note that you can use PROMPT only in environments that are integrated into TSO/E (see "Interaction of Three Ways to Affect Prompting"). You can set prompting for an exec using the PROMPT keyword of the TSO/E EXEC command or the PROMPT function. The PROMPT function overrides the PROMPT keyword of the EXEC command. For more information about situations when one option overrides the other, see Interaction of Three Ways to Affect Prompting. When an exec sets prompting on, prompting continues in other functions and subroutines called by the exec. Prompting ends when the PROMPT(OFF) function is used or when the original exec ends. When an exec invokes another exec or CLIST with the EXEC command, prompting in the new exec or CLIST depends on the setting in the profile and the use of the PROMPT keyword on the EXEC command. If the data stack is not empty, commands that prompt retrieve information from the data stack before prompting a user at the terminal. To prevent a prompt from retrieving information from the data stack, issue a NEWSTACK command to create a new data stack for the exec. When your TSO/E profile specifies NOPROMPT, no prompting is allowed in your terminal session even though the PROMPT function returns ON. Interaction of Three Ways to Affect Prompting You can control prompting within an exec in three ways:
Table 1 shows how the three ways to affect prompting interact and the final outcome of various interactions.
Examples: The following are some examples of using PROMPT.
|
Copyright IBM Corporation 1990, 2014
|