z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


An example of customizing the OMVS command

z/OS UNIX System Services User's Guide
SA23-2279-00

To invoke the OMVS command to:
  • Set function key 1 as the Control function key
  • Start three sessions
  • Not use a shared address space
Enter:
omvs pf1(control) sessions(3) noshareas

By writing a small REXX program or CLIST, you can customize your selection of keywords on the TSO/E OMVS command. If you intend to use these settings every time you enter the command, you could:

  1. Write a REXX program that runs the OMVS command with the customized keywords. For example, here is a REXX program called MYOMVS:
    /* REXX */
    P = PROMPT("ON");                 /* Don't suppress prompting */
    "omvs pf1(control) sessions(3) NOSHAREAS";
    X = PROMPT(P);                    /* Restore original prompting state */
    Return;
    The use of the REXX function PROMPT() is required to prevent prompts from being suppressed. Otherwise, TSO/E commands cannot prompt you for additional information when the commands are issued during a shell session.
  2. Install the exec in a data set that is part of either the SYSPROC or SYSEXEC concatenation.
  3. When you log on to TSO/E, at the READY prompt you enter MYOMVS and the exec calls MYOMVS, your customized OMVS command. Your changes override the default settings.

For more discussion of the syntax of the OMVS command and its customizable keywords, see the OMVS command description in z/OS UNIX System Services Command Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014