# Using Zowe Explorer

Review this section to familiarize yourself with the extension and make the best use of available options and features. The section contains usage tips and sample use cases for data sets, USS files, JOBs, and TSO commands.

# Usage Tips

Make the best use of the extension with the following tips:

  • Data set, USS and jobs persistence settings: You can store any of data sets, USS files, or jobs permanently in the Favorites tab. Right-click on a data set, USS file, or job and click Add Favorite.

  • Identify syntax errors with a syntax highlighter: Zowe Explorer supports a syntax hightlighter for data sets. To enhance the experience of using the extension, you can download an extension that highlights syntax.

  • Edit a profile: You can edit existing profiles by clicking the pencil button next to the magnifying glass button in the explorer tree. The feature lets you modify the information inside your profile.

  • Delete a profile: You can permanently delete profiles by right-clicking the profile and selecting the Delete Profile option. The feature deletes a profile from your .zowe folder. Alternatively, you can delete a profile from the VSCode Command Palette.

    Follow these steps:

    1. Press F1 on your keyboard.
    2. Select the Zowe: Delete a Profile Permanently option.
  • Hide a profile: You can hide a profile from profile tree by right-clicking the profile and selecting the Hide Profile option. If necessary, add the profile back by clicking the + button from the explorer tree.

  • 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 or Command+Alt+R.

# Sample Use Cases

Review the following use cases to understand how to use Zowe Explorer.

# Work with Data Sets

You can use the following functionalities when interacting with data sets:

# View data sets and use multiple filters

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Select the profile that you want to filter.
  4. Click the Search Data Sets by Entering Patterns magnifying glass.
  5. 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 append or postpend any filter with an *, which indicates wildcard searching. You cannot enter an * as the entire pattern. View Data Set

# View data sets with member filters

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Click the magnifying glass icon.
  4. Enter a search pattern in the HLQ.ZZZ.SSS(MEMBERNAME) format to filter out and display the specified member in the tree.
View Data Set With Member Pattern

# Refresh the list of data sets

  1. Navigate to the explorer tree.
  2. Click Refresh All button on the right of the DATA SETS explorer bar.

# Rename data sets

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Select a data set you want to rename.
  4. Right-click the data set and select the Rename Data Set option.
  5. Change the name of the data set.
Rename Data Set

# Copy data set members

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Select a member you want to copy.
  4. Right-click the member and select the Copy Data Set option.
  5. Right-click the data set where the member belongs and select the Paste Data Set option.
  6. Enter the name of the copied member.
Copy Data Set Member

# Edit and upload a data set member

  1. Navigate to the explorer tree.

  2. Open the DATA SETS bar.

  3. Open a profile.

  4. Select the PDS member (or PS) that you want to download.

    Note: To view the members of a PDS, click on the PDS to expand the tree.

    The PDS member displays in the text editor window of VSC.

  5. Edit the document.

  6. Navigate back to the PDS member (or PS) in the explorer tree, and click the 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.

Edit

# Prevent merge conflicts

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Open a member of a data set you want to edit.
  4. Edit the member.
  5. Press Ctrl+S or Command+S (OSx) to save you changes.
  6. (Optional) Resolve merge conflicts if necessary.
Save

# Create data sets and specify the parameters

  1. Navigate to the explorer tree.

  2. Open the DATA SETS bar.

  3. Right-click the profile you want to create a data set with and select Create New Data Set.

  4. Enter a name for your data set.

  5. From the drop-down menu, select the data set type that you want to create.

  6. Select Edit Attributes in the drop-down menu.

    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

  7. Select the attribute you want to edit, provide the value in the command palette, and click Enter.

  8. (Optional) Edit the parameters of your data set.

  9. Select the + Allocate Data Set option to create the data set. You successfully created a data set.

Set Parameters

# Create data sets and data set members

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Right + click on the profile where you want to create a data set and select Create New Data Set.
  4. Enter a name for your data set.
  5. From the drop-down menu, select the data set type that you want to create.
  6. Select +Allocate Data Set to create your data set.
  7. Right-click your newly-created data set and select Create New Member.
  8. Enter a name for your new data set member and click Enter. The member is created and opened in the workspace.

# Delete a data set member and a data set

  1. Navigate to the explorer tree.

  2. Open the DATA SETS bar.

  3. Open the profile and PDS containing the member.

  4. Right-click on the PDS member that you want to delete and select Delete Member.

  5. Confirm the deletion by clicking Yes on the drop-down menu.

    Note: Alternatively, you can select 'No' to cancel the deletion.

  6. To delete a PDS, right-click the PDS and click Delete PDS, then confirm the deletion.

    Note: You can delete a PDS before you delete its members.

Delete

# View and access multiple profiles simultaneously

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Click the Add Profile button on the right of the DATA SET explorer bar.
  4. Select the profile that you want to add to the view as illustrated by the following screen.
Add Profile

# Allocate Like

  1. Navigate to the explorer tree.
  2. Open the DATA SETS bar.
  3. Right-click the data set and select the Allocate Like (New File with Same Attributes) option.
  4. Enter the new data set name.
Allocate Like

# Work with USS Files

You can use the following functionalities when interacting with USS files:

# View Unix System Services (USS) files

  1. Navigate to the explorer tree.

  2. Open the Unix System Services (USS) bar.

  3. Select the profile that you want to filter.

  4. Click the Search Unix System Services (USS) by Entering a Path magnifying glass.

  5. 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.

    Enter Path

# Refresh the list of files

  1. Navigate to the explorer tree.
  2. Click Refresh All button on the right of the Unix System Services (USS) explorer bar as illustrated by the following screen:
Refresh All

# Rename USS files

  1. Navigate to the explorer tree.
  2. Open the USS bar.
  3. Select a USS file you want to rename.
  4. Right-click the USS file and select the Rename USS file option.
  5. Change the name of the USS file.

# Download, edit, and upload existing USS files

  1. 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 is displayed in the text editor window of VSC.

    Note: If you define file associations with syntax coloring, the suffix of your file will be marked up.

  2. Edit the document.

  3. Press Ctrl+S or Command+S (OSx) to save the file

Your file is uploaded.

Edit

# Create and delete USS files and directories

# Create a directory

  1. Navigate to the explorer tree.
  2. Open the Unix System Services (USS) bar.
  3. Select a directory where you want to add the new directory.
  4. Select the Create directory button and specify the directory name. The directory is created.

# Create a file

  1. Navigate to the explorer tree.
  2. Open the Unix System Services (USS) bar.
  3. Select a directory where you want to add the new file to.
  4. Select the Create file button and specify the file name. The file is created.

# Delete a file

  1. Navigate to the explorer tree.
  2. Open the Unix System Services (USS) bar.
  3. Select a file you want to remove.
  4. Select the Delete button and click *Yes** to confirm. The file is deleted.

# Delete a directory

  1. Navigate to the explorer tree.
  2. Open the Unix System Services (USS) bar.
  3. Select a directory you want to remove.
  4. Select the Delete button and click Yes to confirm. The directory and all child files and directories are deleted.
Create and Delete

# View and access multiple USS profiles simultaneously

  1. Navigate to the explorer tree.
  2. Open the Unix System Services (USS) bar.
  3. Click the Add Session button on the right of the Unix System Services (USS) explorer bar.
  4. Select the profile that you want to add to the view as illustrated by the following screen.
View Profiles

# Work with jobs

You can use the following functionalities when interacting with jobs:

# View a job

  1. Navigate to the explorer tree.
  2. Open the JOBS bar.
  3. Select a directory with JCL files.
  4. Right-click on the JCL you want to view, and click Get JCL.
View JOB

# Download spool content

  1. Navigate to the explorer tree.
  2. Open the JOBS bar.
  3. Select a directory with JCL files.
  4. Click the Download icon next to a folder with the spool content.
  5. Save the file on your computer.
Download Spool

# MVS/TSO Commands

# Issue MVS commands

Zowe Explorer also enables you to issue MVS commands. You can issue such commands as Allocate or Exec against a profile.

  1. Press the F1 key on your keyboard.
  2. Select the Zowe:Issue MVS Command option.
  3. Select your profile.
  4. Issue an MVS command.
Issue a MVS command