Using Zowe Explorer CICS Extension
Using Zowe Explorer CICS Extension
The CICS Extension for Zowe Explorer adds additional functionality to the popular Visual Studio Code extension, Zowe Explorer. This extension allows you to interact with CICS regions and programs, and run commands against them.
Contents​
- Features
- System requirements
- Installing
- Getting started
- CICS resources
- Untrusted TLS certificates
- Usage tips
- Providing feedback or contributing
- Uninstalling
Features​
- Load profiles directly from a locally installed Zowe instance.
- Create new Zowe CICS profiles and connect to them.
- Update session details, and delete profiles by using the user-friendly interface.
- Work with multiple regions that contain programs, local transactions, and local files within a plex in a comprehensible tree-like format.
- Perform actions such as Enable, Disable, New Copy, and Phase In directly from the UI.
- Perform additional actions on local files including Open and Close directly from the UI.
- View and search attributes of resources and regions by right-clicking and using the dynamic filtering feature.
- Apply multiple filters to regions, programs, local transactions, and local files.
- View and interact with all resources under a plex.
System requirements​
Install Visual Studio Code on your PC.
Installing​
You can install or update the extension from Visual Studio Code Extensions or from a VSIX file.
Installing from Visual Studio Code Extensions​
-
Navigate to Extensions tab of your VS Code application.
-
Search for
Zowe Explorer for IBM CICS
and click it. -
Click Install at the top of the page.
If you do not have Zowe Explorer installed, it will automatically install it for you as part of the installation.
Installing from a VSIX file​
Before you perform the following steps, ensure that you have installed Zowe Explorer which is a required dependency. For more information, see Installing Zowe Explorer.
If your Zowe Explorer is installed, please follow the steps below to install Zowe Explorer CICS Extension from a VSIX file.
-
Visit the download site. Select the Latest button which directs to a page that includes the latest version of
.vsix
file. Download it to your PC. -
Open the Extensions icon in the side bar, navigate to the ... menu, press Install from VSIX ... and select the downloaded
cics-extension-for-zowe-1.x.x.vsix
file.
The following message indicates that the extension is installed successfully.
The Zowe Explorer pane will show tree views for Data Sets, Unit System Services (USS) and Jobs, and a new view for CICS.
Getting started​
Creating profile​
If you already have a Zowe CICS CLI profile, the CICS tree will load the default profile on startup.
If you don't have an existing Zowe CICS CLI profile, follow these steps to create one:
- Select the + button in the CICS tree.
- Select the Create a CICS profile option to open a panel that defines connection details.
Note: The connection must point to a CICS region's CICS Management Client Interface (CMCI) TCP/IP host name and port number. The region can be a WUI server in a CICSPlex, or else a stand-alone Single Management Application Programming (SMSS) region.
Configuring a CICS region to have a connection is a system programmer task and more details can be found in Setting up CMCI with CICSPlex SM or Setting up CMCI in a stand-alone CICS region. If your CMCI connection is configured to use a self-signed certificate that your PC's trust store doesn't recognize, see Untrusted TLS certificates.
To show more than one CICS profiles in the tree, select the + button and choose from the list of profiles. Only profiles that not already included in the CICS tree will be shown. To view all Zowe CICS CLI profiles, issue the command zowe profiles list cics
from a terminal.
Updating profile​
-
Right-click a profile to open up the profile menu actions.
-
Select the Update Profile button to update the session details.
This will open a panel with fields containing the details that are used to create the connection. You can modify all fields apart from the Profile Name.
-
Once the details are updated, click the Update Profile button to apply the changes to the profile.
Hiding profiles​
-
Right-click a chosen profile to open the menu actions.
-
Select Hide Profile to hide it from the CICS view.
-
To add the profile back, click the + button and select the profile from the quick pick list.
Deleting profiles​
-
Right-click a chosen profile.
-
Select Delete Profile and click the Yes button when prompted to confirm the action of permanently deleting the profile. The functionality deletes the CICS profile from the persistent storage directory
~/.zowe/profiles/cics
.
CICS resources​
Expand a CICS profile to see the region name, and expand the region to view its resources.
-
If the CICS profile is connected to a CMAS region that is part of a CICSPlex, the tree will show all of the regions managed by the CICSPlex.
-
If the CICS profile is for an SMSS region, then just one region will be shown. Inactive regions in a plex are shown with an empty icon.
Showing and filtering resources in a region​
Expand a CICS region to show folders for the resource types Programs, Transactions, and Local Files. Expand each type to show the resources. The number of resources in a resource tree will appear in square brackets next to the tree name.
The list of resources is pre-filtered to exclude many of the IBM supplied ones to narrow the contents to just include user programs.
-
Use the search icon against a resource type to apply a filter. You can enter an exact resource name or use wildcards. The search history is saved so you can recall previous searches.
-
To reset the filter to its initial criteria, use the clear filter icon against the resource type. If you want to see all resources in a region (including IBM supplied ones), you can use * as a filter.
Tip: To apply multiple filters, separate entries with a comma. You can append any filter with an *, which indicates wildcard searching.
Showing and filtering resources in a plex​
Similar to filtering resources in a region, you can apply a filter on a all region resources in a plex.
-
Use the search icon inline with the Regions tree and then select either Regions, Programs, Local Transactions or Local Files from the drop-down menu to specify which resource type the filter should be applied to for all regions in the plex.
-
To reset the filter to its initial criteria, use the clear filter icon against the Regions tree. This will open a drop-down menu which gives the option to clear the filter for all the Regions, Programs, Local Transactions or Local Files in the plex, and the option All to otherwise clear all filters within the plex.
Tip: To apply multiple filters, separate entries with a comma. You can append any filter with an *, which indicates wildcard searching.
Showing and filtering resources in an 'All' resource tree​
Plexes includes All Programs, All Local Transactions and All Local Files trees which contain all the corresponding resources from all regions in the plex.
-
To view resources under these trees, use the search icon inline with the tree and apply a filter.
-
If the applied filter results in over 500 records, you can change the filter to narrow down the search, or click the view X more ... item to retrieve 'X' more resources.
Showing attributes​
Right-click and use the pop-up menu against a program to list the available actions that can be performed.
For every resource, including a CICS region, the Show Attributes option opens a viewer listing all attributes and their values. The attributes page has a filter box at the top that lets you search for attributes matching the criteria.
Enabling and disabling​
-
Right-click against a program, local transaction or local file to open up the pop-up menu.
-
Click Disable [CICS resource] to disable the resource. A disabled resource is identified by a
(Disabled)
text next to its name.
When a resource is already disabled, you can enable it again by clicking Enable [CICS resource] in the pop-up menu.
New copy and phase in​
Use the new copy and the phase in actions against a CICS program to get the CICS region to load a fresh of the selected program into memory. This could be after you've edited a COBOL program source and successfully compiled it into a load library and now want to test your change.
The New copy count
for a program which is greater than zero is shown next to the program item in the CICS resource tree.
Opening and closing local files​
Open a local file
- Right-click against a closed local file.
- Select Open Local File to toggle the
openstatus
attribute toOPEN
.
Close a local file
-
Right-click against an open local file and select Close Local File.
-
When prompted, choose one option: Wait, No Wait, or Force.
After you select an option, the local file name will be appended with a
(Closed)
label upon success.
Untrusted TLS certificates​
If the CMCI connection uses a TLS certificate that does not exist in your PC's trust store, then by default the connection will be rejected because potentially this could be from an unsafe site.
To override this behavior, you can set the Only accept trusted TLS certificates
field to False
on the form when creating or updating the profile. This is the same as setting rejectUnauthorized=false
on the Zowe CICS CLI profile.
If you define a profile as only accepting trusted TLS certificates when the Zowe Explorer first connects, it will detect the mismatch and pop up a message. You can select Yes to override the profile's setting to accept the untrusted certificate authority.
Usage tips​
-
All menu action commands available via right-clicking a profile or resource (excluding Show Attributes) can be applied to multiple items. To do this, you can multi-select the nodes of the same type before right-clicking and selecting the command.
-
To multi-select, you can hold Ctrl/Cmd key while clicking resources. Or you can select the first item in a list of nodes then hold Shift and click both the last item to select a consecutive list of nodes.
-
Click the refresh icon at the top of the CICS view to reload the resources in every region.
Providing feedback or contributing​
You are welcome to contribute to the Zowe Explorer CICS Extension in many forms and help make it better!
Checking the source of an error​
Before filing an issue, check if an error is arising from the Zowe Explorer for IBM CICS extension instead of the Zowe Explorer extension. To check the error source, expand the error message and review the Source
description.
- Errors arising from the Zowe Explorer CICS extension will have the
Source
asZowe Explorer for IBM CICS (Extension)
, - Errors arising from the Zowe Explorer extension will have the
Source
asZowe Explorer (Extension)
.
Filing an issue​
To file issues, use the Zowe Explorer for IBM CICS issue list, or chat with the community on Slack by indicating the message is for the Zowe Explorer for IBM CICS extension.
Uninstalling​
You can uninstall the Zowe Explorer CICS extension from the VS Code Extensions tab.
-
Navigate to Extensions tab of the VS Code application.
-
Find
Zowe Explorer for IBM CICS
and click it. -
A panel will open. Click Uninstall at the top of the page.
-
A reload may be required. If a button appears for reload, click it and the extension will no longer be installed.