The Visual Studio Code (VSC) Extension for Zowe lets you interact with data sets that are stored on IBM z/OS mainframes. You can explore data sets, view their contents, make changes, and upload the changes to the mainframe. Interacting with data sets from VSC can be more convenient than using command-line interfaces or 3270 emulators.
Important! To use the VSC Extension for Zowe, you must install Zowe CLI version 2.0.0
or later.
The VSC Extension for Zowe is powered by Zowe CLI. The extension demonstrates the potential for plug-ins powered by Zowe.
Tip: For information about how to install the extension from a VSIX
file and run system tests on the extension, see the Developer README file that is located in the docs folder of this repository.
After you install the Zowe extension, meet the following prerequisites:
- Install Zowe CLI on your PC.
Important!: To use the VSC Extension for Zowe, you must install Zowe CLI version
2.0.0
or later.
You can alter the behavior of the extension in the following ways:
- Data set Safe Save: The Visual Studio Code Save functionality will overwrite data set contents on the mainframe. To prevent conflicts, use the Zowe extension Safe Save functionality to compare changes made with initial mainframe contents before saving. For more information, see Use Safe Save to prevent merge conflicts.
- Data set persistence settings: You can toggle the persistence of any data sets that are present under your Favorites tab.
Tip: By default, Visual Studio Code does not highlight data set syntax. To enhance the experience of using the extension, download an extension that highlights syntax, such as COBOL.
WARNING: Specifying these preferences incorrectly, may cause the extension to fail.
Extension preferences can also be modified in the Settings
for this extension. They can be customized in the following ways:
- Data set creation settings: You can change the default creation settings for various data set types.
- Temp Folder Location: You can change the default folder location, for where temporary files are stored. In order to set in
Settings
, use the example below.
"Zowe-Temp-Folder-Location": {
"folderPath": "/path/to/directory"
}
Review the following use cases to understand how to use this extension.
- Navigate to your explorer tree.
- Open the DATA SETS bar.
- Select the profile that you want to filter.
- Click the Search Data Sets by Entering Patterns magnifying glass.
- From the drop-down, enter the patterns that you want to filter.
The data sets that match your pattern(s) display in the explorer tree.
Tip: To provide multiple filters, separate entries with a comma. You can prepend or append any filter with an *, which indicates wildcard searching. You cannot enter an * as the entire pattern.
- Navigate to your explorer tree.
- Click Refresh All button on the right of the DATA SETS explorer bar as illustrated by the following screen:
-
Navigate to your explorer tree.
-
Open the DATA SETS bar.
-
Open a profile.
-
Click the PDS member (or PS) that you want to download.
Note: To view the members of a PDS, click the PDS to expand the tree.
The PDS member displays in the text editor window of VSC.
-
Edit the document.
-
Navigate back to the PDS member (or PS) in the explorer tree, and click the Safe Save button.
Your PDS member (or PS) is uploaded.
Note: If someone else has made changes to the PDS member (or PS) while you were editing it, you can merge your conflicts before uploading to the mainframe.
- Navigate to your explorer tree.
- Open the DATA SETS bar.
- Open a profile.
- Download and edit a data set.
- Click the Safe Save button for the data set that you opened in the explorer tree.
- Resolve merge conflicts if necessary.
- Navigate to your explorer tree.
- Open the DATA SETS bar.
- Select the Create New Data Set button to specify the profile that you want to use to create the data set.
- From the drop-down menu, select the type of PDS that you want to create.
- Enter a name for the PDS. The PDS is created.
- To create a member, right-click the PDS and select Create New Member.
- Enter a name for the member. The member is created.
-
Navigate to your explorer tree.
-
Open the DATA SETS bar.
-
Open the profile and PDS containing the member.
-
Right-click on the PDS member that you want to delete and select Delete Member.
-
Confirm the deletion by clicking Yes on the drop-down menu.
Note: Alternatively, you can select 'No' to cancel the deletion.
-
To delete a PDS, right-click the PDS and click Delete PDS, then confirm the deletion.
Note: You can delete a PDS before you you delete its members.
- Navigate to your explorer tree.
- Open the DATA SETS bar.
- Click the Add Profile button on the right of the DATA SET explorer bar.
- Select the profile that you want to add to the view as illustrated by the following screen.
- Navigate to to File, Preferences, Settings.
- In the section Default User Settings, scroll to Zowe Configuration and expand the options.
- Click the Edit button to the left of the Data Set settings that you want to edit.
- Select Copy to Settings.
- Edit the settings as needed.
- Navigate to your explorer tree.
- Open the Unix System Services (USS) bar.
- Select the profile that you want to filter.
- Click the Search Unix System Services (USS) by Entering a Path magnifying glass.
- From the drop-down, enter the path that you want as the root of your displayed tree.
All child files and directories of that root file are displayed in the explorer tree.
Note: You will not be able to expand directories or files that you are not authorised for.
- Navigate to your explorer tree.
- Click Refresh All button on the right of the Unix System Services (USS) explorer bar as illustrated by the following screen:
-
Click the file that you want to download.
Note: To view the files within a directory, click the directory to expand the tree.
The file displays in the text editor window of VSC.
Note: If you have defined file associations with syntax coloring the suffix of your file will be marked up.
-
Edit the document.
-
Type Ctrl-s or Command-s (OSx) to save the file
Your file is uploaded.
- Navigate to your explorer tree.
- Open the Unix System Services (USS) bar.
- Select a directory that you want to add the new directory to.
- Select the Create directory button and specify the directory name. The directory is created.
- Navigate to your explorer tree.
- Open the Unix System Services (USS) bar.
- Select a directory that you want to add the new file to.
- Select the Create file button and specify the file name. The file is created.
- Navigate to your explorer tree.
- Open the Unix System Services (USS) bar.
- Select a file you want to remove.
- Select the Delete button and press yes in the confirmation dropdown. The file is deleted.
- Navigate to your explorer tree.
- Open the Unix System Services (USS) bar.
- Select a directory you want to remove.
- Select the Delete button and press yes in the confirmation dropdown. The directory and all child files and directories are deleted.
- Navigate to your explorer tree.
- Open the Unix System Services (USS) bar.
- Click the Add Profile button on the right of the Unix System Services (USS) explorer bar.
- Select the profile that you want to add to the view as illustrated by the following screen.