Changing a column caption and width

Customize a workspace by changing a column caption and width.

Before you begin

Complete workspace customization preparation. For more information about preparation steps, see Customizing a workspace.

Procedure

  1. Use the ISPF file editor session to locate the DISPLAYCOLS workspace definition statement.
    For example, scroll beyond the first <SUBPANEL> tag statement in the KOBSITEC workspace to find the DISPLAYCOLS statement:
                                                       
     000079 DISPLAYCOLS='DELTASTAT(CAPTION='Status',WIDTH=7), 
     000080 SITNAME(CAPTION='Situation_Name',WIDTH=30),       
     000081 ORIGINNODE(CAPTION='MSN_Event_Source'),           
     000082 GBLTMSTMP(CAPTION='HUB_Event_Time',DATETIME),     
     000083 LCLTMSTMP(CAPTION='Agent_Event_Time',DATETIME),   
     000084 ATOMIZE(WIDTH=30,SCROLL),                         
     000085 TYPE(CAPTION='Type')'                             
                                                      
  2. Change a column heading caption name.
    By default, the column heading caption is defined by the Object Definition Interchange (ODI) definition. However, it is possible to specify an override in the DISPLAYCOLS statement. For example, in the KOBSITEC workspace subpanel definition, to change the Situation Name caption to say Name, you can adjust the DISPLAYCOLS specification as follows:
     
     000079 DISPLAYCOLS='DELTASTAT(CAPTION='Status',WIDTH=7), 
     000080 SITNAME(CAPTION='Name',WIDTH=30),       
     000081 ORIGINNODE(CAPTION='MSN_Event_Source'),           
     000082 GBLTMSTMP(CAPTION='HUB_Event_Time',DATETIME),     
     000083 LCLTMSTMP(CAPTION='Agent_Event_Time',DATETIME),   
     000084 ATOMIZE(WIDTH=30,SCROLL),                         
     000085 TYPE(CAPTION='Type')'    
  3. Change a column width.
    You might want to adjust the space on the screen that is available for a specific column. For example, in the modified KOBSITEC workspace subpanel definition, to change the Name column width, you might adjust the DISPLAYCOLS specification as follows:
     
     000079 DISPLAYCOLS='DELTASTAT(CAPTION='Status',WIDTH=7), 
     000080 SITNAME(CAPTION='Name',WIDTH=32),       
     000081 ORIGINNODE(CAPTION='MSN_Event_Source'),           
     000082 GBLTMSTMP(CAPTION='HUB_Event_Time',DATETIME),     
     000083 LCLTMSTMP(CAPTION='Agent_Event_Time',DATETIME),   
     000084 ATOMIZE(WIDTH=30,SCROLL),                         
     000085 TYPE(CAPTION='Type')'    
  4. Use the ISPF file editor session to save your workspace.
  5. Press PF3 (End) in your enhanced 3270 user interface session to close the workspace source view.
    As the PF3 (End) action is processed, a refreshed view of the modified workspace is displayed, that is, the KOBSITEC workspace in this example:
    Figure 1. Customized workspace view that shows a column with a modified caption and width

    Customized workspace view that shows a column with a modified caption and width.
    Tip: The KOBSITEC workspace is refreshed following a PF3 (End) action. A different workspace might not be refreshed following a PF3 (End) action. If a refresh does not occur, you can exit and reenter the modified workspace to see your changes.

What to do next

In the example, the first caption change in the modified KOBSITEC workspace introduced an inconsistency between the first and second subpanel views because both panels contain a Situation Name column. You might want to apply the same changes to the second panel for consistency. You can apply the same changes to the second subpanel by scrolling down in the editor to the next DISPLAYCOLS statement and repeating the procedure.