With the removal of keytar shim from VS Code we will be replacing
node-keytar
with@zowe/secrets-for-zowe-sdk
in the v2.10.0 release to avoid user interruptions. Extenders, please check out the usage documentationv3 Pre-release coming soon with the removal of v1 profile support. Extenders, keep an eye on changes affecting extenders for the full list of changes
Zowe Explorer is a sub-project of Zowe, focusing on modernizing mainframe experience. Zowe is a project hosted by the Open Mainframe Project, a Linux Foundation project.
The Zowe Explorer extension modernizes the way developers and system administrators interact with z/OS mainframes by:
- Enabling you to create, modify, rename, copy, and upload data sets directly to a z/OS mainframe.
- Enabling you to create, modify, rename, and upload USS files directly to a z/OS mainframe.
- Providing a more streamlined way to access data sets, uss files, and jobs.
- Letting you create, edit, and delete Zowe CLI
zosmf
compatible profiles. - Letting you leverage the API Mediation Layer token-based authentication to access z/OSMF.
- Sample use cases
- Prerequisites tasks
- Getting started
- Usage tips
- Keyboard shortcuts
- Extending Zowe Explorer
- Known Issues
- More information
Zowe Explorer is compatible only with Theia 1.18.0 or higher. We recommend using a Theia community release as Zowe Explorer could experience possible unexpected behaviors with the latest Theia releases.
Review the following use cases and their procedures to understand how to work with data sets in Zowe Explorer. For the complete list of features including USS and jobs, see Zowe Explorer Sample Use Cases.
- View data sets and use multiple filters: View multiple data sets simultaneously and apply filters to show specified data sets.
- Refresh the data set list: Refresh the list of pre-filtered data sets.
- Rename data sets: Rename specified data sets.
- Copy data set members: Copy specified data set members.
- Edit and upload a data set member: You can instantly pull data sets and data set members from the mainframe, edit them, and upload back.
- Prevent merge conflicts: The save option includes a compare mechanism letting you resolve potential merge conflicts.
- Create data sets and data set members: Create a new data set and data set members.
- Create data sets and specify the parameters: Create a new data set and specify parameter values.
- Delete data sets and data set members: Delete one or more data sets and data set members.
- View and access multiple profiles simultaneously: Work with data sets from multiple profiles.
- Submit a JCL: You can submit a jcl from a chose data set.
- Allocate Like: Create a copy of a chosen data set with the same parameters.
- Configure TSO/E address space services, z/OS data set, file REST interface, and z/OS jobs REST interface. For more information, see z/OS Requirements.
- Create a Zowe Explorer profile.
This section includes steps for the tasks you need to complete to get started using Zowe Explorer.
Configure Zowe Explorer, create a team configuration file or a v1 profile (deprecated) for profile manangement, review the sample use cases to familiarize yourself with the capabilities of Zowe Explorer, and you are ready to use Zowe Explorer.
You can configure Zowe Explorer by changing the extension settings. For more information, see Configuring Zowe Explorer.
When environment conditions do not support the Zowe CLI built-in Credential Manager, see Modifying the Secure Credentials Enabled Setting.
Zowe Explorer supports the use of MFA tokens for authentication. When using zOSMF profiles it is required to connect through the Zowe API Mediation Layer (API ML). Suggested use case for MFA authentication using Zowe Explorer is by logging into the API ML via the right-click login action in Zowe Explorer and when prompted for password enter the MFA token in place of user password, the API will return a JSON token (JWT) that will be used for further authentication.
You can find more information regarding MFA support in Zowe's documentation on integrating with API Mediation Layer.
- Navigate to the Side Bar.
- Hover over DATA SETS, USS, or JOBS.
- Click the + icon.
- Select Create a New Team Configuration File.
- If no workspace is open, a global configuration file is created. If a workspace is open, chose either a global configuration file or a project-level configuration file.
- Edit the config file to include the host and other connection information, and save.
Your team configuration file appears either in your .zowe folder if you chose the global configuration file option, or in your workspace directory if you chose the project-level configuration file option. The notification message that shows in VS Code after config file creation includes the path of the created file.
v1 profiles are deprecated and planned to be removed in Zowe Explorer v3.0.0.
Note: If a team configuration file is in place, v1 profile creation and use will not be available.
- Navigate to the Side Bar.
- Hover over DATA SETS, USS, or JOBS.
- Click the + icon.
- Select Create a New Connection to z/OS. The user name and password fields are optional.
- Follow the instructions, and enter all required information to complete the profile creation.
You can now use all the functionalities of the extension.
The first time profiles are used you will be prompted for user name and password for the profile's connection. The term password is used loosely to represent all supported authentication secrets like passphrases, passtickets, Multifactor Authentication (MFA) tokens, etc.
Securing credentials for v1 profiles and secure fields in the team configuration file are handled by the Zowe Imperative dependency. To update securely stored user names and passwords in Zowe Explorer, the user can right click the profile and select Update Credentials. This prompts the user for the new credentials and the secure credentials vault is updated.
- Navigate to the Side Bar.
- Hover over DATA SETS, USS, or JOBS.
- Click the + icon.
- If team configuration file is in place, the Edit Team Configuration File option displays.
- If only a global or project level config is in place, it opens to be edited. If both a global and project level config are in place, the user must select which file to edit.
Note: The following information applies to Zowe CLI V1 profiles (one yaml file for each user profile) and Zowe CLI team profiles (Zowe CLI V2).
Zowe Explorer includes the profile validation feature that helps to ensure that the specified connection to z/OS is successfully established and your profile is ready for use. If a profile is valid, the profile is active and can be used.
By default, this feature is automatically enabled. You can disable the feature by right-clicking on your profile and selecting the Disable Validation for Profile option. Alternatively, you can enable or disable the feature for all profiles in the VS Code settings
- In VS Code, navigate to Settings.
- Navigate to Zowe Explorer settings.
- Check the Automatic Profile Validation checkbox to enable the automatic validation of profiles option. Uncheck to disable.
- Restart VS Code.
As a Zowe user, you can leverage the base profile functionality to access multiple services through Single Sign-on. Base profiles enable you to authenticate using the Zowe API Mediation Layer (API ML). You can use base profiles with more than one service profile. For more information, see Base Profiles.
Note: Before using the base profile functionality with v1 profiles, ensure that you have Zowe CLI v6.0.0 or higher installed.
-
Zowe Explorer has a right click action for profiles to log in and log out of the authentication service for existing Base profiles. If a v1 Base profile hasn't been created, open a terminal and run the following Zowe CLI command:
zowe auth login apiml
. -
Follow the instructions to complete the login. A local base profile is created that contains your token.
Note: For more information about the process, see Token Management.
-
Open VS Code and select the Zowe Explorer icon in the Side Bar.
-
Hover over DATA SETS, USS, or JOBS.
-
Click the + icon.
-
Select the profile you use with your base profile with the token.
The profile appears in the tree and you can now use this profile to access z/OSMF via the API Mediation Layer.
For more information, see Integrating with API Mediation Layer.
If the token for your base profile is no longer valid, you can log in again to get a new token with the Log in to Authentication Service feature.
Notes:
- The feature is only available for base profiles.
- The feature supports only API Mediation Layer at the moment. Other extenders may use a different authentication service.
-
Open VS Code and select the Zowe Explorer icon in the Side Bar.
-
Right-click your profile.
-
Select the Log in to Authentication Service option.
You are prompted to enter your username and password.
The token is stored in the corresponding base profile file, YAML file for v1 Profiles, or the team configuration file.
If you do not want to store your token, you can request the server to end your session token. Use the Log out from Authentication Service feature to invalidate the token:
- Open Zowe Explorer.
- Hover over DATA SETS, USS, or JOBS.
- Click the + icon.
- Right-click your profile.
- Select the Log out from Authentication Service option.
Your token has been successfully invalidated.
-
Use the Add to Favorite feature to permanently store chosen data sets, USS files, and jobs in the Favorites folder. Right-click on a data set, USS file or jobs and select Add Favorite.
-
Syntax Highlighting: Zowe Explorer supports syntax highlighting for data sets. You can search for and install such extensions in VS Code Marketplace.
-
Update a profile: Right-click a profile, select the Update Profile option, and modify the information inside the profile.
-
Delete a profile: For Zowe V1 profiles, right-click a profile and select the Delete Profile option to permanently delete the profile and delete the profile from your
.zowe
folder.For Zowe V2 profiles, Delete Profile opens the
zowe.config.json
file for the user to delete the profile manually: -
Hide a profile: You can hide a profile from the profile tree by right-clicking the profile and selecting the Hide Profile option. To unhide the profile, click the + button and select the profile from the quick pick list.
-
Open recent members: Zowe Explorer lets you open a list of members you worked on earlier. You can access the list by pressing
Ctrl
+Alt
+R
(Windows) orCommand
+Option
+R
(Mac).
For the comprehensive Zowe Explorer documentation that also includes information about USS and Jobs interactions, see the Zowe Explorer documentation in Zowe Docs.
-
Restart Zowe Explorer
- Windows:
ctrl
+alt
+z
- Mac:
⌘
+⌥
+z
- Windows:
-
Open Recent Member
- Windows:
ctrl
+alt
+r
- Mac:
⌘
+⌥
+r
- Windows:
-
Search in all Loaded Items
- Windows:
ctrl
+alt
+p
- Mac:
⌘
+⌥
+p
- Windows:
You can add new functionalities to Zowe Explorer by creating your own extension. For more information, see Extensions for Zowe Explorer.
Tip: View an example of a Zowe Explorer extension: Zowe Explorer FTP extension documentation.
Files written in languages primarily read from right to left (Arabic, Hebrew, many Asian languages) can include portions of text that are written and read left to right, such as numbers.
These bidirectional (BiDi) languages are not currently supported in Visual Studio Code. (See Issue #86667 for more information.)
As a result, VS Code extensions like Zowe Explorer, Zowe Explorer CICS Extension, and Zowe Explorer FTP Extension are not able to support BiDi languages in files.
- For the complete Zowe Explorer documentation, see Zowe Docs.
- Join the #zowe-explorer channel on Slack to stay in touch with the Zowe community.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Hover over the profile that you want to apply the filter to.
- Click the Search icon.
- Enter a pattern you want to create a filter for. The data sets that match your pattern(s) are displayed in the Side Bar.
Tip: To provide multiple filters, separate entries with a comma. You can append or postpend any filter with an * to apply wildcard searching. You cannot enter an * as the entire pattern.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Hover over the profile that you want to apply the filter to.
- Click the Search icon.
- Enter a search pattern in the
HLQ.ZZZ.SSS(MEMBERNAME)
format to filter for and display the specified member in the tree.
Note: You cannot favorite a data set or member that includes a member filter search pattern.
- Navigate to the Side Bar.
- Click Refresh All button (circular arrow icon) on the right of the DATA SETS explorer bar.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Select a data set you want to rename.
- Right-click the data set and select the Rename Data Set option.
- Enter the new name of the data set.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Select a data set member you want to copy.
- Right-click the member and select the Copy Member option.
- Right-click a data set that you want to paste the member to and select the Paste Member option.
- Enter the name of the copied member.
-
Navigate to the Side Bar.
-
Open the DATA SETS bar.
-
Open a profile.
-
Select the data set member you want to edit.
Note: To view the members of a data set, click the data to expand the tree.
The data set member is displayed in the text editor window of VS Code.
-
Edit the document.
-
Navigate back to the data set member in the explorer tree, and press
Ctrl
+S
orCommand
+S
(OSx) to upload the member.Your data set member is uploaded.
Note: If someone else has made changes to the data set member while you were editing it, you can merge your conflicts before uploading the member to the mainframe.
-
Navigate to the Side Bar.
-
Open the DATA SETS bar.
-
Open a member of a data set you want to edit.
-
Edit the selected member.
-
Press
Ctrl
+S
orCommand
+S
(OSx) to save the changes.If the original content in your local version no longer matches the same file in the mainframe, a warning message displays advising the user to compare both versions.
-
If necessary, use the editor tool bar to resolve any merge conflicts.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Right-click on the profile where you want to create a data set and select Create New Data Set.
- Enter a name for your data set.
- From the drop-down menu, select the data set type that you want to create.
- Select +Allocate Data Set to create the data set.
- Right-click your newly-created data set and select Create New Member.
- Enter a name for your new data set member and press the
Enter
key. The member is created and opened in the workspace.
-
Navigate to the Side Bar.
-
Open the DATA SETS bar.
-
Right-click the profile you want to create a data set with and select Create New Data Set.
-
Enter a name for your data set and press
Enter
. -
From the drop-down menu, select the data set type that you want to create and press
Enter
. -
Select Edit Attributes in the drop-down menu and press the
Enter
key.The attributes list for the data set appears. You can edit the following attributes:
-
Allocation Unit
-
Average Block Length
-
Block Size
-
Data Class
-
Device Type
-
Directory Block
-
Data Set Type
-
Management Class
-
Data Set Name
-
Data Set Organization
-
Primary Space
-
Record Format
-
Record Length
-
Secondary Space
-
Size
-
Storage Class
-
Volume Serial
-
-
Select the attribute you want to edit, provide the value in the Command Palette, and press the
Enter
key. -
(Optional) Edit the parameters of your data set.
-
Select the + Allocate Data Set option to create the data set.
The data set has been created successfully.
-
Navigate to the Side Bar.
-
Open the DATA SETS bar.
-
Select one or more data sets and/or data set members.
Tip: Hold the
Ctrl
/Cmd
key while clicking data sets or data set members to select more than one item for deletion. -
Press the
Delete
key on your keyboard.Alternatively, right-click on the item and select the Delete Data Set or Delete Member option.
-
Confirm the deletion by clicking Delete in the drop-down menu.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Click the + icon on the right of the DATA SET bar.
- Select a profile from the drop-down menu in the Command Palette. This adds the profile to the Side Bar, from where you can search for data sets.
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Select the data set or data set member you want to submit.
- Right-click the data set or member and select the Submit Job option.
- If the extension setting "Jobs: Confirm Submission" matches the job that you are trying to submit, you will be presented with a submission confirmation dialog.
- Click Submit within the dialog to confirm submission, or click Cancel to cancel the operation.
- Otherwise, the job has been submitted.
- Once the job has been submitted, click on the hyperlink within the notification pop-up to view the submission (if desired).
- Navigate to the Side Bar.
- Open the DATA SETS bar.
- Right-click a data set and select the Allocate Like (New Data Set with Same Attributes) option.
- Enter a new data set name.