Information
Space announcement: BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.

Changing the display format of a field


You can use the DISPLAY primary command to change the display format of one or more fields on the display. The DISPLAY command enables you to display field data in different formats. The default format is the format defined in the record layout for each field.

You can specify the following formats: binary (BIN), bit (BIT), character (CHAR), packed decimal data (DEC), decimal floating point number (FLOAT), DBCS character (DBCS), and hexadecimal (HEX). This command changes the display format; it does not change the record layout definition of the field. For a complete description of the DISPLAY primary command, see DISPLAY-DIS.

Displaying hexadecimal notation for a specified field

Use the DISPLAY fields HEX command to change the display format of one or more fields to horizontal hex. In this example, the field EMP-LOCAL-TAX-WITHOLD-PCT (field number 21) is shown in hex.

Display Field Data in HEX - (DISPLAY field HEX)

image2021-6-16_10-18-40.png

To display field data in HEX, perform the following steps:

  1. Type DIS 21 HEX in the COMMAND field.
  2. Press Enter. The data items in field 21 only are redisplayed in hexadecimal notation as illustrated in the following figure.

Result of DISPLAY 21 HEX

The display format of the 3-byte packed signed numeric field, EMP-LOCAL-TAX-WITHOLD-PCT changes from a normalized, zero suppressed, decimal value (5.00) to the horizontal hex value (000500C). The format information in the heading of field 21 also changes to 3/HEX.

Vertical Formatted Mode - After DISPLAY 21 HEX

  File-AID - Browse - USERID9.FASAMP.EMPMAST -------------- LINE 0000 COL 86  198
  COMMAND ===>                                                  SCROLL ===> PAGE
 EMP-MARITAL-STATUS EMP-LOCAL-TAX-WITHOLD-PCT EMP-CON-HOME-PHONE
 1/AN               3/HEX                     10/AN
 (86-86)            (99-101)                  (189-198)
 16---------------- 21----------------------- 34----------------
 ********************************* TOP OF DATA **********************-CAPS OFF-*
 M                  00500C                    4155556981
 - - - - - - - - - - - - - - - - - - - - - - - - - - -  1 RECORD(S) NOT SELECTED
 S                  00000C                    2125559021
 S                  01500C                    4045559021
 S                  00000C                    3125559021
 S                  00000C                    4085551245
 S                  00700C                    4085551245
 S                  00700C                    7175550855


More about the DISPLAY command

  • The DISPLAY field definitions you specify are retained until you exit the Browse/Edit function.
  • DISPLAY and SHOW command settings affect both Vertical (VFMT) and Formatted (FMT) modes.

Returning fields to their standard display format

To return a field to its internal format as defined by the record layout, use the RESET keyword of the DISPLAY primary command.

Return Field Display to Standard - (DISPLAY field RESET)

image2021-6-16_10-21-0.png

Steps:

  1. Type DIS 21 RESET in the COMMAND field.
  2. Press Enter. Field 21 is displayed normalized in decimal format as illustrated in the following figure.

Vertical Formatted Mode - After DISPLAY 21 RESET

  File-AID - Browse - USERID9.FASAMP.EMPMAST -------------- LINE 0000 COL 86  198
  COMMAND ===>                                                  SCROLL ===> PAGE
 EMP-MARITAL-STATUS EMP-LOCAL-TAX-WITHOLD-PCT EMP-CON-HOME-PHONE
 1/AN               3/PS                      10/AN
 (86-86)            (99-101)                  (189-198)
 16---------------- 21----------------------- 34----------------
 ********************************* TOP OF DATA **********************-CAPS OFF-*
 M                                       5.00 4155556981
 - - - - - - - - - - - - - - - - - - - - - - - - - - -  1 RECORD(S) NOT SELECTED
 S                                          0 2125559021
 S                                      15.00 4045559021
 S                                          0 3125559021
 S                                          0 4085551245
 S                                       7.00 4085551245
 S                                          0 4085559021

Redisplaying all fields

Use the DISPLAY ALL command to redisplay all fields.

Redisplay All Fields - (DISPLAY ALL)

image2021-6-16_10-22-28.png

To redisplay all fields, perform the following steps:

  1. Type DIS ALL in the COMMAND field.
  2. Press Enter. File-AID redisplays all of the fields.

Result of DISPLAY ALL

Note that when the screen is redisplayed, it is positioned with field number 16 as the first field on the left side of the display. To display the columns containing the data items for fields 1-15, enter the LEFT primary command. To display the columns containing data items following field number 19, enter the RIGHT primary command. The affect of the LEFT and RIGHT commands is similar in character and vertical formatted modes.

Also note that field 17 is not shown because it is a group item. Usually, only elementary items are presented in vertical formatted mode.

Vertical Formatted Mode - After DISPLAY ALL

  File-AID - Browse - USERID9.FASAMP.EMPMAST --------------- LINE 0000 COL 86  95
  COMMAND ===>                                                  SCROLL ===> PAGE
 EMP-MARITAL-STATUS EMP-LIFE-INS-WITHOLD-AMT EMP-NATL-TAX-WITHOLD-PCT
 1/AN               6/SNUM                   3/PS
 (86-86)            (87-92)                  (93-95)
 16---------------- 18---------------------- 19----------------------
 ********************************* TOP OF DATA **********************-CAPS OFF-*
 M                                  -3000.00                   -74.00
 - - - - - - - - - - - - - - - - - - - - - - - - - - -  1 RECORD(S) NOT SELECTED
 S                                         0                    55.00
 S                                         0 INVALID
 S                                   5000.00                     7.00
 S                                   5000.00                    65.00
 S                                         0                    49.00
 S                                   5000.00                    45.00
 S                                   5000.00 INVALID

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware File-AID/MVS 21.01