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, upload to, or submit jobs on 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. Using OPS/REXX Language Support with 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 use OPS/REXX Language Support with OPS/MVS:
Using OPS/REXX Language Support with multiple OPS/MVS instances
Configuring for Zowe Explorer (Recommended)To ensure that data sets 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, use one of the following options. Option 1: Create a file association in Workspace Settings
Option 2: Create a file association in User Settings
After completing the steps for either of the two options, 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 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 SnippetsBefore 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:
Using snippets promotes consistent and correct syntax in the rules you design. Issuing OPS/MVS CommandsTo issue OPS/MVS commands through OPS/REXX Language Support, you need an OPS/MVS RESTful Web Services or REST API connection. Configure the OPS/REXX Language Support extension for the connection as described in Using OPS/REXX Language Support with OPS/MVS. If you are using Zowe Explorer (optional) to issue commands, configure the extension as described in Configuring for Zowe Explorer. 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
Option 2
After the command is issued, the VS Code window displays a status message.
Tip: If you are using OPS/REXX Language Support with Zowe Explorer, you can use option 1 or option 2 from the Zowe Explorer sidebar in the VS Code application window. See the following videos for demonstrations. Show Rule Status (Option 1) Enable Rule (Option 2) Disable Rule (Option 2) Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. |