Home > IBM Tivoli Monitoring, ITM > Customizing the IBM Tivoli Monitoring Enhanced 3270 User Interface – Part 2

Customizing the IBM Tivoli Monitoring Enhanced 3270 User Interface – Part 2

This article will describe how to customize or create your own IBM OMEGAMON XE Enhanced 3270 User Interface (E3270UI) workspaces.

Before modifying an product supplied workspace member it is recommended that you copy it from the hlq.TKANWENU or hlq.RKANWENU library to the hlq.UKANWENU library and make the modifications there. Remember that any changes you make will be seen by all users of the E3270UI therefore you might want to clone the E3270UI started task  JCL and create you own instance of it with your own private WENU workspace library concatenated in front of the standard ones, so that you can develop and test your changes without impacting anyone else.
You could also allocate your own workspace library in front of the standard ones but allocate the concatenation to you own RKANWxxx library where xxx are the last three characters of the LOCALEID specification in your own profile member. See part 1 of this series for more details.

Standard Workspace Structure

The Workspace Header Section

In addition to the standard workspaces that you see on the E3270UI screen there are also popup and silent workspaces.  In this article we shall just be looking at a standard workspace.

Within a workspace, comments on a line are indicated by a /* (slash asterisk) string. There is no need for a closing */ (asterisk slash). Comments are NOT continued across lines so each must be preceded by a /*.

A workspace definition consists of a header section that starts with a <WORKSPACE> stanza followed by one or more sub panel definitions and ending with a </WORKSPACEEND> stanza.

The <WORKSPACE> stanza must be the first non-comment line in the workspace source member.

A typical workspace header might look like this:

HEADER=’CICS Region Overview’

The HEADER text ‘CICS Region Overview’ appears on the fourth line of the screen.

The two navigation fields in the top right corner are referred to as NAV1 and NAV2. You set the text to be displayed in the caption (in blue on the above screen shot) using the NAV1TEXT and NAV2TEXT keywords.
If you set the appropriate ZOMEGLOCK1 or ZOMEGLOCK2 to NO then the user can overtype the corresponding input field to change the context of the data being displayed on the workspace, such as overtyping the ‘Region’ name in the above screen shot of an OMEGAMON XE for CICS on z/OS workspace to change to a different CICS region within the same CICSplex. The actual implementation and use of these two fields is product specific. Setting ZOMEGLOCK1 or ZOMEGLOCK2 to YES will prevent the user from overtyping the corresponding field.

Sub Panels

A sub panel definition within a workspace starts with a <SUBPANEL> stanza. There is NO corresponding closing stanza, the next <SUBPANEL> or </WORSPACEEND> stanza defines the end of the sub panel definition.

There are two different type of sub panel, DETAIL and SUMMARY. A DETAIL sub panel is used to show data about a single row of data as a block on the screen:

A SUMMARY sub panel is typically used to display multiple rows of data returned by the query as a table:

If you know that there will only ever be ONE row of data returned, you can use either style of sub panel. Be aware though that there are differences in the way navigation to other workspaces works between the two styles of sub panel, as described in my earlier E3270 Overview article.
A Typical Sub Panel header might like this:



The TYPE=DETAIL line defines this as a detail sub panel.

The HEADER line creates a sub panel header. Notice that it contains a variable, &CICSNAME.  This variable would have been set by an earlier workspace by the navigation process. We will look at setting variables later.

LINES Statement

The LINES statement defines the number of lines that the sub panel should occupy. For a detail sub panel you must ensure that you have enough lines and columns to display all the attributes specified by the DISPALYCOLS keyword. For example, if you specify LINES=5 and COLUMNS=2 but then specify eleven attribute names in the DISPLAYCOLS statement, you will not see the eleventh attribute!

COLUMNS Statement

This defines the number of columns of data to be shown. For example, this is a two-column detail display:

The default is DYNAMIC, which allows the E3270UI to control the formatting of the sub panel.
There are also COLUMNS132 and COLUMNS160 keywords that can be used to specify the number of columns to be displayed on 3270 screens with a 130 or 160 character wide display.

Following the sub panel header section are the following lines:


These relate to the way the sub panel query is run. DO NOT MESS WITH THESE!


If the QUERYWHEN option is NOT specified then after having navigated forward from this workspace, as you navigate back to it using F3 the previous data is displayed. The query associated with the sub panel is NOT run again.
If you specify QUERYWHEN=RETURN then as you navigate backwards to the workspace, the query is run so that the sub panel shows the latest data, not the old data.


The WHENNODATA keyword defines the behavior when there is no data to display in this sub panel. There are a number of options as follows:

  • Collapse. Only the sub panel header, collapse/expand twisty, and the minimize and close buttons are displayed. This is the default.
  • Minimize. The sub panel is minimized down to the task bar
  • End. If no data is retrieved on the initial query or entry to the workspace, the sub panel is “deleted” from the workspace. This option is useful for queries that will either return data or will not, but that condition will not change if the workspace data is refreshed by pressing ENTER.
  • Shrink. The number of rows in the sub panel is dynamically decreased to zero when there is no data.
  • Hide. Use instead of End if you want the sub panel to reappear when data is available again.

QUERY Statement

The QUERY statement defines a standard ITM SQL Query that will be sent to the ITM framework via a Data Retrieval Agent (DRA).


The DISPLAYCOLS statement names the attributes that are to be displayed on the sub panel. The attributes are displayed in the order specified. Any attribute name you specify here must also be specified in the QUERY statement, however you do not have to display every attribute that the query retrieves.
You might retrieve certain attributes in the query in order to set variables from their values for later use as you navigate forward from this workspace. ORIGINNODE (the managed system name) is a typical example.

By default, each attribute is displayed using the same attribute caption and formatting information as used by ITM but you can override this on an attribute-by-attribute basis.

KEYCOLS Statement

This statement defines the attribute names from the query whose data that should be used to create variables of the same name as the attribute when the row of data is selected as you navigate forward.
Any attribute name you specify here must also be specified in the QUERY statement.

SORTCOLS Statement

The SORTCOLS statement specifies the attributes that should be indexed so that the rows of data in a TYPE=SUMMARY sub panel can be sorted by the user.
Since there is an overhead associated with building these indexes, especially for large row sets, it is recommended that you keep the number of sortable attributes to the minimum required to enable the user to perform the task at hand.
Any attribute name you specify here must also be specified in the QUERY statement.

ZOOMCOLS Statement

The ZOOMSCOLS statement specifies the attributes that the user can ‘zoom’ on by placing the cursor on the attribute name for a detail sub panel, or the data for a summary sub panel, and the target workspace.
Any attribute name you specify here must also be specified in the QUERY statement and must also be specified in the DISPLAYCOLS statement.

ACTION Statement

The ACTION statement only applies to summary sub panels. Each instance of an ACTION statement defines the selection character that must be entered to invoke the associated action, the text to be displayed when the user inputs a / in the selection field to display the available options, the target workspace member name when this option is selected and for one entry, the DEFAULT option to indicate that this is the default option to be taken if the user just places the cursor in the input field and presses enter without entering a selection character.

A typical definition might look like this:

ACTION=RTYPE(T,”CICS Tasks Waiting for Resource”,KCPBOTT)

The RTYPE value (in this example) is the name of the attribute that the input field is to be displayed next to. Currently this is not used. There is always only one selection field and it is to the left of the first attribute that is displayed for each row.

Basic Workspace Customization

There are a few simple things that you can do to customize workspaces and sub panels.

Rearrange Displayed Attributes

For summary panels, you may prefer to see different attributes on the left of the tabular display so that that they are more rapidly visible without having to scroll the sub panel to the right to see them.

In the DISPLAYCOLS entry, each attribute should be followed by a comma and  the entire string enclosed in quotes. For example:


Change or Add Captions

You can override the default caption extracted from the ITM Attribute Group definition by changing an existing caption override or adding a CAPTION entry after the attribute name. For example:

SOS(CAPTION=”Short On Storage”)’

Split a Sub Panel into multiple Sub Panels

For summary sub panels, which display the data as a scrollable table, if the number of attributes specified in the DISPLAYCOLS entry is larger than the screen width can display then the user will need to scroll left and right to see them all.

If you prefer you could split the displayed data into two sub panels so that you can see data that is currently off screen to the right, on a second sub panel below the first.

The process is fairly straightforward.

  • Within the workspace, make a copy of the sub panel you want to split so that the new copy follows the existing one.
  • Change the QUERY statement so that it reads as follows:


This will avoid the same query from being issued twice. Instead this sub panel will reuse the result set from the previous sub panel.

  • Edit the DISPLAYCOLS statement in each sub panel so that it displays the required attributes.

Convert a Detail Sub Panel to a Summary Sub Panel

A detail sub panel can occupy multiple lines on the screen. You might prefer to display the data as a summary style sub panel and have the user scroll left and right to see the additional data.

This is a simple as changing the sub TYPE=DETAIL entry in the sub panel header so that it reads TYPE=SUMMARY.

You may also need to delete or comment out any LINES entry in the sub panel header.

So for example, this:


Becomes this:
/* LINES=7
Zoom style navigation will still work as it did before. You may also be able to add action style navigation to the same workspaces as the zoom navigation by adding appropriate ACTION statements to the sub panel entry.

For Example, if the ZOOMCOLS entry for the sub panel is:


Then you ‘may’ be able to add the following to the sub panel so that you can navigate using action characters or the action menu:


When the ZOOMCOLS definition for a column takes the user to a silent workspace, particularly one that runs a REXX exec then you may find it does not work as expected. However for basic navigation to another workspace this conversion ‘should’ work fine.

Convert a Summary sub Panel to a Detail Sub Panel

You can only convert a summary sub panel to a detail sub panel if the query associated with it only ever returns a single row of data. If the query returns multiple rows, only the FIRST row of data that is returned will be displayed.

The process is pretty much the reverse of the above.

  • Add a COLUMNS=n entry to the header if you want the display to be more than a single column.
  • Add a ZOOMCOLS entry and specify the attribute name that you want to zoom on and the target workspace member name.
  • Delete or comment out any ACTION statements.
Categories: IBM Tivoli Monitoring, ITM
  1. Dae Seob. BAE
    April 1, 2013 at 8:00 am

    I have a problem to display E3270UI.
    MSG is “Selection Error
    DB2 xxxx not found on z/OS yyyy”
    At om/DB2-KDPTHRD Workspace.

  2. April 1, 2013 at 2:25 pm

    Are you trying to change context (the selected db2 and zos (smfid)) by overtyping the db2 id and/of smf id in the top right corner of the screen?
    What the message means is that the E3270UI could not find the db2 id you entered on the lpar if (smf id) you entered in the E3270UI registry. You an try doing a registry refresh (Tools menu, option 3) but if that does not work, check that the DB2 system you are trying to switch to is actually running on the target lpar (smfid)./

  3. Dae Seub. BAE
    April 3, 2013 at 1:24 am

    Thank you for reply.
    I checked it(DB2 system is running on the local).

    I trying to customize OM/DB2 workspace.
    My OM/DB2 Env. is ..
    -OM/DB2 V5.1.1
    -At zOS
    -HubTEMS(at AIX)

    I processed that
    1)Logon E3270UI
    2)Select(/) DB2 subsystem
    3)Choose (DB2 System Resource Manager-KDPSUBSM)
    4)MSG is “Selection Error
    DB2 xxxx not found on z/OS yyyy”
    At om/DB2-KDPSUBSM Workspace.
    But data is displayed.
    And CUI,Classic Interface are OK(data is displayed)

  4. April 3, 2013 at 1:47 am

    When you logon, what is the name of first screen you see (KOBSTART?). If you are customizing the workspaces, what changes have you made? Did it work OK before you started customizing? If it did, I’d suggest removing the customized workspaces and starting again. Make one change at a time and test each change as you go.

  5. Dae Seub. BAE
    April 3, 2013 at 5:41 pm

    I did it, first workspace is KOBSTART.
    But I did not change default workspace.
    Log on TOM and Then I choose DB2 Subsystem ID with ‘/’,and then I Select Thread,Resource Manage…. etc
    And then MSG displayed ‘Selection …”

  6. April 3, 2013 at 5:55 pm

    So are you saying this happens with the product as supplied by IBM or do you have any modified panels?

    • Dae Seob. BAE
      April 4, 2013 at 5:41 am

       this happened with the product as supplied by IBM

      • Dae Seob. BAE
        April 4, 2013 at 9:35 am

        Thank you very much for u support.
        I resolve it.
        APAR PM70720

    • Dae Seob. BAE
      April 4, 2013 at 12:18 pm

      I have some questions.
      Which workspace or subpanel is display current sql?.
      what can I do for cancel thread?

  7. April 4, 2013 at 1:11 pm

    Display of SQL text is not supported yet in the E3270UI or the TEP.

    To cancel a thread: From KOBSTART, enter T against a a DB2 system to see threads. This should take you to the KDPTHRD workspace – ‘DB2 Active Threads for xxxx’. Enter ! (exclamation mark) against the thread to bring up the thread cancel dialog.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: