You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-23Lines changed: 14 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ OPS/REXX Language Support makes AOF rule and OPS/REXX program development easier
14
14
- Get hover help on OPS/REXX built-in functions, host environment names, and AOF event variable names
15
15
- Get basic error checking for AOF rule and OPS/REXX syntax
16
16
- Copy from a library of frequently used OPS/REXX rule snippets
17
-
- Issue selected OPS/MVS commands to perform common rule actions and invoke OPS/REXX programs
17
+
- Issue selected OPS/MVS commands to perform common rule actions and execute OPS/REXX programs
18
18
19
19
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](#recommended-software)) or Zowe CLI.
20
20
@@ -58,28 +58,19 @@ Although it is possible to use OPS/REXX Language Support without access to OPS/M
58
58
- When you have multiple instances of OPS/MVS running on a single system, only one instance of the REST API is required.
59
59
60
60
## Configuring OPS/REXX Language Support for Zowe Explorer (Recommended)
61
-
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.
62
-
63
-
To create a file association, choose one of the following options.
64
-
65
-
**Option 1: Create a file association in Workspace Settings**
66
-
1. Use the command palette in VS Code (**Ctrl/Cmd + Shift + P**) to locate the Workspace Settings.
67
-
2. Scroll down to the **Files: Associations** setting and click **Add Item**.
68
-
3. Add `*.REXX(*` to the **Key** field, and `opsrexx` to the **Value** field.
69
-
4. Add `*.RULES(*` to the **Key** field, and `opsrexx` to the **Value** field.
70
-
71
-
**Option 2: Create a file association in User Settings**
72
-
1. Use the command palette in VS Code (**Ctrl/Cmd + Shift + P**) to locate the file `settings.json` (User Settings).
73
-
2. In `settings.json`, add the lines `"*.REXX(*": "opsrexx"` and `"*.RULES(*": "opsrexx"` under `"files.associations"` as shown in the following example:
74
-
75
-
```
76
-
"files.associations": {
77
-
"*.REXX(*": "opsrexx",
78
-
"*.RULES(*": "opsrexx",
79
-
},
80
-
```
81
-
82
-
After completing the steps for either of these two options, you can use Zowe Explorer to access `.opsrexx` files.
61
+
OPS/REXX programs and rules will be automatically recognized as `.opsrexx` files upon opening in VS Code when the first line of the file contains either the comment `/* OPSREXX */` or a rule type identifier, such as `)CMD` or `)MSG` (case-insensitive).
62
+
63
+
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.
64
+
65
+
To create a file association:
66
+
67
+
1. On the VS Code menu bar, click `File`, `Preferences`, and click `Settings` to display the Settings editor.
68
+
2. Select the `User` or `Workspace` tab, depending on which settings you want to update (`User` settings are your personal settings for customizing VS Code and apply to all files globally, `Workspace` settings are specific to a project and override user settings. Check the [VS Code documentation](https://code.visualstudio.com/docs/getstarted/settings) for more information).
69
+
3. Scroll down to or search for the **Files: Associations** setting and click **Add Item**.
70
+
4. Add `**/*QUALIFIER*{,/*}` to the **Key** field, and `opsrexx` to the **Value** field where `QUALIFIER` is the portion of the fully qualified data set path you want to be automatically set as an OPS/REXX file type.
71
+
- For example, if you have a fully qualified data set called `OPSS.CCLXSAMP.SAMPLE.RULES`, you could put `**/*RULES*{,/*}` or `**/*CCLXSAMP*{,/*}` in the **key** field to automatically associate all files in any data set with the matching qualifier.
72
+
73
+
After completing these steps, you can use Zowe Explorer to access `.opsrexx` files.
0 commit comments