Opening a z/OS datasets or z/OS UNIX file in an editor from a hyperlink
The Workbench Editors can recognize text references to z/OS datasets and z/OS UNIX files and allow users to click the hyperlinked names to open the files in an editor. Abend-AID users can click hyperlinks in the Abend-AID Web Browser Interface to open them in an editor as well. Refer to the Abend-AID help for more information.
Syntax Rules
Hyperlinks to datasets must adhere to IBM’s z/OS dataset naming rules. Hyperlinks for z/OS UNIX files must adhere to the following syntax rules:
- A symbol must be preceded by whitespace or else located at the beginning of a line.
- A symbol must begin with a single forward slash.
- A symbol may contain any combination of alphanumeric characters, hyphens, periods, and underscores.
- Spaces and most other non-word characters are not recognized.
- z/OS UNIX hyperlinks are case-sensitive.
To enable hyperlinking
- From the Window menu, select Preferences. The Preferences dialog box appears.
- Select General > Editors > Text Editors > Hyperlinking. The Hyperlinking preferences page appears.
- Select the Enable on demand hyperlink style navigation check box to enable hyperlinks.
- Select the check boxes for the items to be recognized:
- z/OS Dataset
- z/OS UNIX File
Optionally, do one of the following to require a modifier key be entered:
- Enter in the Default modifier key field a default modifier to be used for all selected link kinds.
- Select an item in the Link Kind column and then enter a modifier key for that item in the Modifier keys for selected detector field.
Click OK. Future text references to the selected items will appear as hyperlinks. In the Workbench JCL Editor, hyperlinks appear underlined.
To specify which file extensions will display z/OS dataset hyperlinks
Users can specify which file extensions will display z/OS dataset hyperlinks. By default, z/OS dataset hyperlinks are shown only for files with a .jcl, .jes, .cntl, or .ctl extension, however, any extension can be added.
- From the Window menu, select Preferences. The Preferences dialog box appears.
- Select Compuware > Hyperlinks. The Hyperlinks preferences page appears.
- Do either of the following:
- To display z/OS dataset hyperlinks for all file extensions, clear the Only display z/OS dataset hyperlinks for the following file extensions check box.
- To display z/OS dataset hyperlinks for selected file extensions only, ensure that the Only display z/OS dataset hyperlinks for the following file extensions check box is selected, type the extension into the text field, and click Add. Repeat as necessary for additional file extensions. Extensions are case-insensitive and are not prefixed by a dot (.).
- Click Apply to apply the changes but not close the dialog box or click OK to apply the changes and close the dialog box.
- The hyperlink file extension settings on the Hyperlinks dialog box have no effect in the following cases:
- If the Hyperlinking dialog box's Enable on demand hyperlink style navigation check box is cleared.
- If the Hyperlinking dialog box's z/OS Dataset check box is cleared.
- To remove a file extension from displaying z/OS dataset hyperlinks, select the extension and click Remove.
- To restore the default setting, which is to display z/OS dataset hyperlinks only for files with a .jcl or .jes extension, click Restore Defaults.
- The hyperlink file extension settings on the Hyperlinks dialog box have no effect in the following cases:
To share hyperlink preferences
The preferences for which file extensions will display z/OS hyperlinks can be exported so they can be shared with others or imported when configuring a new workspace.
- From the Export Compuware Configuration dialog box, export the hyperlink preferences by selecting Host Explorer > Hyperlinks and completing the remainder of the dialog box. Refer to the BMC-AMI-DevX-Workbench-for-Eclipse-User-Guide for details on using this dialog box.
- From the Import Compuware Configuration dialog box, import the hyperlink preferences by selecting Host Explorer > Hyperlinks and completing the remainder of the dialog box. Refer to the BMC-AMI-DevX-Workbench-for-Eclipse-User-Guide for details on using this dialog box.
To open a resource from a hyperlink
In an editor, do one of the following:
- Click a hyperlink. Note that the Workbench JCL Editor's hyperlink-eligible dataset names are underlined.
- If a modifier key is required, press that key and click the hyperlink.
- Select the hyperlink, then right-click the hyperlink, select Hyperlink, and select from the submenu on of the following:
- Browse
- Edit
- Browse With
- Edit With
Do one of the following if necessary:
- If the hyperlink references a PDS that contains members, the Dataset Selection dialog box appears. Select the member to open and click OK.
- If the hyperlink references a migrated dataset, a message asks whether to recall the dataset. If desired, click Yes and, when the recall is complete, click the hyperlink again.
- If the hyperlink is in a local file or if a host connection has not been established, the Select a Host dialog box appears so the appropriate host can be selected or configured for hyperlink processing.
The resource is opened in an editor based on the default dataset open mode indicated on the Host Explorer Preferences dialog box.