OPS/REXX Language SupportThe OPS/REXX language is a crucial part of the Broadcom OPS/MVS® product that adds to standard REXX a set of extensions to automate and enhance the productivity of z/OS operations. With the OPS/REXX Language Support extension, automation engineers can develop OPS/MVS Automated Operations Facility (AOF) rules and OPS/REXX programs more efficiently by editing OPS/REXX in a local VS Code environment. Key FeaturesOPS/REXX Language Support makes AOF rule and OPS/REXX program development easier by enabling you to
The OPS/REXX Language Support extension does not provide the ability for you to download from or upload to the mainframe. To access mainframe code while using OPS/REXX Language Support, we recommend Zowe Explorer (see Recommended Software) or Zowe CLI. Recommended SoftwareThe OPS/REXX Language Support extension has no prerequisite software. However, for your best experience with OPS/REXX Language Support, we recommend the following software. REXX Language Support ExtensionFor correct display of syntax highlighting, we recommend using OPS/REXX Language Support with a REXX language support extension. OPS/REXX Language Support has been tested for compatibility with the Broadcom REXX Language Support extension. Zowe ExplorerWe recommend using Zowe Explorer to access mainframe code while using OPS/REXX Language Support. For more information about the Zowe Explorer extension, see Zowe Explorer on the VS Code marketplace. OPS/MVS REST APIWe recommend establishing a connection with your mainframe OPS/MVS instance using the OPS/MVS REST API. Using the REST API along with a Zowe Explorer profile containing connection information allows you to issue OPS/MVS commands and invoke OPS/REXX programs from within VS Code. Configuring OPS/REXX Language Support for OPS/MVSAlthough it is possible to use OPS/REXX Language Support without access to OPS/MVS, most users will want to use the extension while interacting with an OPS/MVS instance. To configure OPS/REXX Language Support for use with OPS/MVS:
Using OPS/REXX Language Support with multiple OPS/MVS instances
Configuring OPS/REXX Language Support for Zowe Explorer (Recommended)OPS/REXX programs and rules will be automatically recognized as To ensure that data sets not containing those first lines and accessed through Zowe Explorer are recognized by the extension as .opsrexx files, you must create a file association in your VS Code settings. To create a file association:
After completing these steps, you can use Zowe Explorer to access Using OPS/REXX Language SupportOPS/REXX Syntax HighlightingUse OPS/REXX syntax highlighting and symbol resolution to help you avoid syntax errors when developing rules. OPS/REXX Hover InsightsPlace and hold your cursor over an OPS/REXX element to view more information about it. Hover insights are available for OPS/REXX built-in functions, host environments, or AOF event variable names. Variable AutocompletionTo trigger autocompletion of AOF variables, type AOF variable completions are supported for all rule types. Variable autocompletion is triggered automatically when you type an OPS/REXX built-in function or host environment name. Syntax Error CheckingOPS/REXX Language Support automatically performs some basic error checks on AOF rule and OPS/REXX program syntax, such as the line length warning shown in the following image. Using OPS/REXX SnippetsUsing snippets promotes consistent and correct syntax in the rules you design. Before you write AOF rules from scratch, check the snippet library for any applicable rule snippets. To use the snippet library:
For a quicker way to access the snippets:
Issuing OPS/MVS CommandsTo issue OPS/MVS commands from OPS/REXX Language Support, you need an OPS/MVS REST API connection. Configure the OPS/REXX Language Support extension for the connection as described in Configuring OPS/REXX Language Support for OPS/MVS. You can use OPS/REXX Language Support to issue the following OPS/MVS commands:
To issue OPS/MVS commands, use one of the following methods. Option 1
Tip: The OPS/MVS: Execute Program with Parameters command can be used from the VS Code command palette regardless of which file is currently open. Option 2
After a command is issued, the VS Code window displays a status message. If a command fails, a detailed error message displays. See the following videos for examples of issuing commands. Show Rule Status (Option 1) Enable Rule (Option 2) Execute Program (Option 2) Execute Program with Parameters (Key binding Use Case Videos: Using OPS/MVS Automation SamplesYou can use Zowe Explorer to copy OPS/MVS automation samples to your own library, then use the OPS/MVS Language Extension to develop and manage the samples. See the following videos for examples of this use case. You can find a complete listing of the automation samples included with OPS/MVS here. Copy and execute an OPS/MVS sample programCopy an OPS/MVS sample program and execute it with parametersCopy an OPS/MVS sample rule and enable itCopyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. |