This CICS Extension for Zowe Explorer adds additional functionality to the popular VSCode extension, Zowe Explorer. This extension allows interactions with CICS regions and programs, and the ability to run commands against them.
- Software Requirements
- Features
- Getting Started
- CICS Resources
- Show and Filter Resources in a Region
- Show and Filter Resources in a Plex
- Show and Filter Resources in an 'All' Resource Tree
- Show Attributes
- Enable and Disable
- New Copy and Phase In
- Open and Close Local Files
- Purge Task
- Inquire Functionality
- View Datasets under Libraries
- View four CICS Web Resources under the Web Folder
- Untrusted TLS Certificates
- Usage Tips
- Providing feedback or help contributing
Ensure that you meet the following prerequisites before you use the extension:
-
Install VSCode
-
Install Zowe Explorer v2
Tip: See Troubleshooting guide for solutions to common problems.
- Load profiles directly from Zowe instance locally installed.
- Create new Zowe CICS profiles and connect to them.
- Work with multiple regions containing programs, local transactions and local files within a plex in a comprehensible tree-like format.
- Perform actions such as
Enable
,Disable
,New Copy
andPhase In
directly from the UI. - Perform additional actions on local files including
Open
andClose
directly from the UI. - Perform a
Purge
on Tasks with the option to select from aPurge
orForce Purge
. - View and search attributes of resources and regions by right-clicking and using the dynamic filtering feature.
- Create new CICS profiles, update session details, and delete profiles using the user-friendly interface.
- Apply multiple filters to regions, programs, local transactions local files and/or tasks.
- View and interact with all resources under a plex.
To Install CICS Extension for Zowe Explorer see Installation.
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 New CICS profile option to open your config file.
-
Edit the config file to add a CICS profile.
-
Refresh the Zowe Explorer for IBM CICS extension by either clicking the button at the top level of the CICS view, or the
Zowe Explorer for IBM CICS: Refresh
command palette option. -
Select the + button in the CICS tree and click the newly created profile to load it into view.
Here's an example of a CICS profile entry in the config file:
"profiles": {
...
"cics_example": {
"type": "cics",
"properties": {
"host": "replace-with-host-name",
"port": replace-with-port-number,
"rejectUnauthorized": true,
"protocol": "http",
"cicsPlex": "replace-with-plex-name",
"regionName": "replace-with-region-name"
}
},
...
}
Tip: Create a profile without the "user" and "password" properties and expand the profile after loading it into the CICS view. The CICS extension will then prompt you for the "user" and "password" fields to be stored in the secure array.
-
Select the + button in the CICS tree.
-
Select the Create New 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.
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, a stand-alone Single Management Application Programming (SMSS) region, or a CICS system group.
If neither of the fields under 'CICS Details' (for users using v1 profiles) or neither the 'cicsPlex' or 'regionName' properties (for users using team configuration) are specified, the profile will show all CICSPlex for the WUI server. Specify a Plex Name to just view data for a single CICSPlex.
For a CICSPlex, all managed regions will be shown unless you specify a specific region name. Instead of a region name, you may also enter a CICS System Group to allow scoping of resources within the CICSPlex.
For a stand-alone CICS region, the Region Name may be entered but is optional. Do not enter a CICSPlex name for a stand-alone CICS 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 profile in the tree, select the + button and choose from the list of profiles. Only profiles not already included in the CICS tree will be shown. To view all Zowe CICS CLI profiles use the command zowe profiles list cics
from a terminal.
-
Right-click a profile to open up the profile menu actions.
-
Select the Update Profile button to open the config file.
-
Edit the config file to update the profile(s).
-
Refresh the Zowe Explorer for IBM CICS extension by either clicking the button at the top level of the CICS view, or the
Zowe Explorer for IBM CICS: Refresh
command palette option.
-
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.
Open the menu actions for a profile by right-clicking a profile and 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.
-
Right-click a chosen profile.
-
Select Delete Profile which opens the config file.
-
Edit the config file to remove the cics profile entry.
-
Refresh the Zowe Explorer for IBM CICS extension by either clicking the button at the top level of the CICS view, or the
Zowe Explorer for IBM CICS: Refresh
command palette option.
-
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
.
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.
Expand a CICS region to show folders for the resource types Programs
, Transactions
, Local Files
and Tasks
. 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 are 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. This can be an exact resource name or else you can 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 wish 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.
Similar to filtering resources in a region, it is also possible to 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 an option 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.
Plexes contain an All Programs
, All Local Transactions
, All Local Files
and All Tasks
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, either change the filter to narrow down the search, or click the view X more ...
item to retrieve 'X' more resources.
Tip: The default 500 count can be modified via the Record Count Increment
property in Settings (UI).
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, Show Attributes
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.
Right-click against a program, local transaction or local file to open up the pop-up menu and click Disable [CICS resource]
to disable the resource. When a resource is already disabled the first option becomes Enable [CICS resource]
to allow its enablement state to be toggled. A disabled resource is identified by a (Disabled)
text next to its name.
Use New Copy
and 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 newcopycnt
for a program which is greater than zero is shown next to the program item in the CICS resource tree.
Right-click against a closed local file and perform the Open Local File
menu action to toggle the openstatus
attribute to 'OPEN'.
To close a local file, right-click against an open local file and perform the Close Local File
menu action. This will bring up a prompt on the bottom right corner requesting to choose one of Wait
, No Wait
or Force
for the file busy condition. Once an option has been selected, the local file name will be appended with a (Closed)
label upon success.
Right-click against a task and click the Purge Task
command. This will open a prompt asking whether to perform a Purge
or Force Purge
.
Select the appropriate condition to perform the purge.
Right-click against a Task and perform the Inquire Transaction
command. This will inquire the associated Local Transaction (i.e. the transaction with the name that matches the tranid
attribute of the selected Task) under the Local Transactions folder.
The same can be done on a Local Transaction to find the associated Program by executing the Inquire Program
right-click menu action against a Local Transaction.
Expand libraries of a region to view specific datasets belonging to a library. Right-click on libraries to Show Attributes
to view library attributes. Similarly, right-click on datasets to Show Attributes
to view dataset attributes.
Expand the Web folder to view TCPIP Services, URI Maps, Pipelines and Web Services. Each of these resources can be expanded and allows for right-click functionality on the specific resource to execute the Show Attributes
command. Use the search icon to filter down specific resources by applying a filter.
If the CMCI connection is using a TLS certificate that your PC doesn't have in its trust store, then by default the connection will be rejected as potentially this could be from an unsafe site. To override this behavior, either set the Only accept trusted TLS certificates
field on the form when creating/updating the profile to False
. 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 allow you to override the setting and proceed. This is done through a pop-up message with a Yes
button to accept the untrusted certificate authority, which changes the profile's setting.
-
All menu action commands available via right-clicking a profile/resource (excluding
Show Attributes
) can be applied on multiple items by multi-selecting nodes of the same type before right-clicking and selecting the command.- To multi-select, either hold
Ctrl
/Cmd
key while clicking resources, or select the first item in a list of nodes then holdShift
and click both the last item to select a consecutive list of nodes.
- To multi-select, either hold
-
Click the refresh icon at the top of the CICS view to reload the resources in every region.
Before filing an issue, check if an error is arising from the Zowe Explorer for IBM CICS extension and not the Zowe Explorer extension by expanding the error message and checking if the Source
is Zowe Explorer for IBM CICS (Extension)
.
Error messages arising from the Zowe Explorer extension will have the Source
as Zowe Explorer(Extension)
.
Before filing an issue, check the Troubleshooting guide first to ensure that the issue hasn't already been addressed.
To file issues, use the Zowe Explorer for IBM CICS issue list, or chat with use on Slack by indicating the message is for the Zowe Explorer for IBM CICS extension.