C H A P T E R  9

Creating Maps and Mapsets Using the SGU

Sun MTP provides two methods for managing maps and mapsets.

For a description of the BMS macro instructions, refer to the IBM documentation.

This chapter contains the following topics:


Starting the SGU



Note - You cannot invoke the CSGU transaction from a 3270-type terminal or if you are using TN3270 emulation; you must be running a local client.




procedure icon  To Start the SGU

single-step bulletType the CSGU transaction on a blank Sun MTP screen or press PF9 on the main menu of the Development System.

FIGURE 9-2 shows the SGU-Maps Maintenance screen.

FIGURE 9-1 shows a map to the functions of the SGU.

  FIGURE 9-1 Screen Generation Utility--Menu Map

Diagram showing the actions performed when you make a selection on the Screen Generation Utility menu.


Maps Maintenance Menu

When you start the SGU, the Maps Maintenance Menu is displayed. The Maps Maintenance Menu displays only files with an .sgu extension, the Sun MTP native form of the BMS mapset. These mapset files maintain basic BMS options for the maps associated with the mapset.

  FIGURE 9-2 Screen Generation Utility--Maps Maintenance Menu

Screen shot showing the Screen Generation Utility Maps Maintenance Menu.

You can only modify the Directory and the New SGU fields on this screen.

Directory

Name of the directory, up to 50 characters. The first element can be an environment variable, which can be followed by other directories separated by slashes. If you change this value, you must press Enter to accept the change.

New SGU

Name of new .sgu file, up to seven alphanumeric characters. Press PF6 to create a new .sgu mapset file.

S

To select a file, move the cursor to the selection field to the left of the file name and type an S or an s. You can select multiple files.


The following function keys are active on the Maps Maintenance Menu screen:

PF2

Opens the Map Set Characteristics screen with the selected file as the work file. If no file is selected, the file that is marked by the location of the cursor is automatically selected. Use this option to modify an existing mapset or one of its maps. Mapset Characteristics describes the Map Set Characteristics screen.

PF3

Closes the Maps Maintenance Menu and returns to the Development System main menu or a blank transaction screen.

PF4

Refreshes the data in the file list portion of the screen after a file's attributes are modified.

PF5

Displays the BMS Maintenance Menu, which lists files with .bms extensions. See Displaying BMS Files.

PF6

Creates a new .sgu file with the file name specified in the New SGU field, and displays the Map Set Characteristics screen with default values. See Mapset Characteristics, for more information. If no name was entered in the New SGU field, you are prompted to type a file name. To cancel file creation, press PF3 or Enter after the error message.

PF7

Displays the files on the previous screen. If the top of the file list is displayed, this message is displayed:

Beginning of data reached

PF8

Displays the files on the next screen. If the bottom of the file list is displayed, this message is displayed:

End of data reached

PF9

Redisplays the contents of the directory, sorted by file name.

PF10

Redisplays the contents of the directory, sorted by the file's modification date.

PF11

Redisplays the contents of the directory, sorted by file size.

PF12

Creates a .bms macro file from an .sgu file. This screen is described in Creating BMS Macro Instructions.

Enter

Makes effective any changes to the Directory field. The file display area is cleared and the files in the new directory are displayed.



Creating a Mapset and Adding a Map


procedure icon  To Create a New Mapset

1. On the Maps Maintenance Menu, type a name in the New SGU field and press PF6.

2. The Map Set Characteristics screen is displayed with the message New file created.

Mapset Characteristics describes this screen in detail.

3. Make any changes to the default characteristics and press Enter.

4. To define extended attributes for the mapset, press PF5 on the Map Set Characteristics screen.

Defining Extended Attributes for the Mapset describes the Extended Attribute screen. Make any changes to the default characteristics and press Enter.

5. Press PF3 to return to the Map Set Characteristics screen.


procedure icon  To Add a Map

1. On the Map Set Characteristics screen, press PF4 to display the Map List screen.

2. On the Map List screen, press PF4 to insert a map.

See Adding Map Names to the Mapset.

After you create the map, you can:

Mapset Characteristics

When you select a .sgu file on the Maps Maintenance Menu and press PF2, or type the name of a New SGU and press PF6, the Map Set Characteristics screen in FIGURE 9-3 is displayed, showing the characteristics of the current mapset. Data on this screen is equivalent to that defined by the BMS DFHMSD macro instruction.

If the mapset exists, the current characteristics are displayed. If you are defining a new mapset, BMS default characteristics are displayed and this message is displayed in the response area of the screen:

KIX1451I New file created ...

  FIGURE 9-3 Screen Generation Utility--Map Set Characteristics

Screen shot showing the Map Set Characteristics screen with the new file created message.

These function keys are active on the Map Set Characteristics screen:

Function Key

Action

PF2

Writes data to disk. This saves the current mapset characteristics, mapset, map and field data to the disk under the file name identified by the current working SGU mapset file. You must press PF2 when you finish editing to save the SGU editing session.

PF3

Returns to the Maps Maintenance Menu. If you modified data but did not write it to disk, this message is displayed:

SGU File has been modified ...press PF3 to quit or PF2 to save.

PF4

Displays a list of map names currently defined for the mapset. The functions available on this screen are described in Adding Map Names to the Mapset.

PF5

Displays the extended attributes for this mapset. These attributes are the default for all maps defined in this mapset.

Enter

Modifies mapset characteristics. Data is validated.

If valid, the new information is accepted and this message is displayed:

Data modified

Invalid data is highlighted. The cursor is positioned over the first invalid field and this message is displayed:

Invalid data


The following table lists the data fields on the Map Set Characteristics screen and acceptable values. These fields are validated when you press Enter on the Map Set Characteristics screen.

The SGU supports most options for the BMS DFHMSD, DFHMDI and DFHMDF macro instructions. However, the Sun MTP BMS Assembler and the Sun MTP runtime module can support only a subset of these options. See Supported BMS Functions for a list of the supported options.

TABLE 9-1 Map Set Characteristics Screen Data Fields

Field Name

Description

Map set name

Name of the mapset. This is a display-only field.

Map type

Type of output to be produced by the assembler after the BMS macro is uploaded to the mainframe.

D: Generate a symbolic description map.

M: Generate a physical map.

&: Generate a symbolic description map or a physical map, depending on the JCL.

Mode

Storage area tags to generate.

Applies only to a symbolic description map.

I: Generate input field names only.

O: Generate output field names only.

blank: Generate both input and output field names.

Language

Indicates the format of the symbolic description map to be generated.

Applies only to a symbolic description map.

C: Generate a COBOL-compatible storage area with appropriate data names.

K: Generate a C structure header file describing the storage area.

P: Generate a PL/I-compatible storage area with appropriate data names.

A: Generate an Assembler-compatible storage area with appropriate data names. This option is not currently supported.

Start printer

Determines whether or not a start printer command is sent to the printer by a BMS output mapping operation.

Y: Send start printer command.

N: Do not send start printer command.

Storage type

Indicates whether each map in a symbolic description map is to occupy a different storage area or whether all maps are to occupy the same storage area. Auto storage and base name are mutually exclusive.

Applies only to a symbolic description map.

A: Auto storage. Each map within the set is to occupy a separate storage area.

blank: All maps within the set occupy the same storage area.

Printer line lth

Indicates the line length for the printer.

Only the default option is supported for standard printers.

All options are supported for 3270-type devices.

4: 40-character print line.

6: 64-character print line.

8: 80-character print line.

D: Default printer line length is determined by the settings at the printer.

Base name

Uses the same storage base for symbolic description maps as multiple map sets. The base name can contain one to eight characters; the first character must be alphabetic.

If the name is left blank, each mapset defined by a program starts at a unique storage base.

Free keyboard

Specifies whether or not a map sent to the terminal frees the keyboard after the map is sent. If not set, this field defaults to the input inhibited status.

Y: Turn off input inhibited status - frees the keyboard after the map is sent.

N: Turn on input inhibited status - does not free the keyboard after the map is sent.

Must Fill

Default value that all maps and fields are set to within the mapset. Sun MTP reserves space in the symbolic map for validation attributes; otherwise, it does not support them.

Y: Any data field with this option set must be completely filled in with data. If the cursor is moved from this field and the field is not completely filled with data, the inhibit input condition is raised.

N: The Must Fill check is not performed.

Sound Alarm

Specifies whether or not a map sent to the terminal sounds the audible alarm after the map displays.

Y: Sound alarm.

N: Do not sound alarm.

Must Enter

Specifies the default value that all maps and fields are set to within the mapset.

Sun MTP reserves space in the symbolic map for validation attributes but does not support them.

Y: Data must be entered into any field when this flag is set. If the cursor is moved from the field and no data was entered, the inhibit input condition is raised.

N: Data does not have to be entered into this field.

Reset MDT's

Specifies whether or not a map that is sent to the terminal resets all Modified Data Tags (MDTs) before the map displays on the terminal.

Y: Reset MDTs before displaying map.

N: Do not reset MDTs before displaying map.

Terminal type

Type of terminal that the physical map is to support. Enter any 6-character code into this field.

If this field is equal to 3270-2, the name of the file created when the BMS is assembled has an M appended, assuming the suffix parameter described in Map set suffix is not set.

Data format

Format/interpretation of data sent/received by the BMS processor.

F: Data is in field data format.

B: Data is in block format.

Map set suffix

One-character suffix to be added to the end of the mapset name; or it can be left blank. This suffix is used to distinguish between maps of different sizes or languages.

Include TIOA pfx

Specifies whether or not to include a 12-byte TIOA prefix when generating the symbolic description map.

Y: Include TIOA prefix.

N: Do not include TIOA prefix.

LDC mnemonic

Code that CICS uses to determine the logical device mnemonic to use for a BMS output operation. Used only for TCAM and VTAM-supported 3600 terminals and batch logical units. Any 2-character code can be entered in this field, or it can be left blank.

Outboard format

Indicates whether or not outboard formatting is supported by the physical mapset. This option is not supported.

Y: Mapset supports outboard formatting.

N: Mapset supports outboard formatting.

Default field ident

 

Alpha

Identifies the repeating symbol. The repeating symbol is recognized as an alphanumeric, unprotected field when setting default values to fields. See Field Attribute Defaults.

Numeric

Identifies the repeating symbol. The repeating symbol is recognized as a numeric, unprotected field when setting default values to fields. See Field Attribute Defaults.

Hex

Identifies the repeating symbol. The repeating symbol is recognized as having a hexadecimal initial value when setting default values to fields. See Field Attribute Defaults.


Defining Extended Attributes for the Mapset

The Extended Attribute Screen defines extended attributes for the mapset.


procedure icon  To Define Extended Attributes for a Mapset

1. Press PF5 on the Map Set Characteristics screen.

The following figure shows the Extended Attribute Screen.



Note - Sun MTP reserves space in the maps for all extended attributes, but supports only the Color and Hilight extended attributes.



  FIGURE 9-4 Screen Generation Utility--Extended Attribute Screen

Screen showing the Extended Attribute Screen.

2. Specify the extended attributes.

3. Press Enter to confirm the changes.

The following table describes the fields on the Extended Attribute screen and their options.

TABLE 9-2 Extended Attribute Screen Fields for the Mapset

Field Name

Description

Extended Attributes

Even though extended attributes can be specified for the mapset, only those attributes described in Extended Attributes are displayed.

N: Do not use extended attributes or indicates that they are specified by the DSATTS and MAPATTS fields.

Y: Use extended attributes in both the physical and symbolic description mapset. Setting this field to Y is equivalent to specifying:

DSATTS=(COLOR,HILIGHT,VALIDN,PS)

and

MAPATTS=(COLOR,HILIGHT,VALIDN,PS)

M: Use extended attributes in the physical mapset only. Setting this field to M is equivalent to specifying:

MAPATTS=(COLOR,HILIGHT,VALIDN,PS)

DSATTS

Exact attributes to use in the symbolic description map. A string of up to seven characters can be specified. Each character stands for a specific extended attribute. If an attribute is specified in this field, it should also be displayed in the MAPATTS field.

C: Color

H: Hilight

O: Outline

P: PS

S: SOSI

T: Transp

V: Validn

MAPATTS

Exact attributes to use in the mapset. A string of up to seven characters can be specified. Each character stands for a specific extended attribute.

C: Color

H: Hilight

O: Outline

P: PS

S: SOSI

T: Transp

V: Validn

Color

Extended attribute color default to assign to maps and fields defined within the mapset. Sun MTP reserves space in the symbolic map for color attributes to be assigned and provides support on certain devices. See Extended Attributes for more information.

D: Default

B: Blue

R: Red

P: Pink

G: Green

T: Turquoise

Y: Yellow

N: Neutral

Hilight

Default highlighting attribute to assign to maps and fields defined within the mapset. Sun MTP reserves space in the symbolic map for highlight attributes. The hilight attribute is supported for various devices. See Extended Attributes for more information.

O: Off

B: Blinking

R: Reverse video

U: Underline

Validn

Indicates whether automatic validation is active.

T: Trigger

F: Must fill

E: Must enter

PS

Indicates whether to use programmed symbols.

B: Use the base symbol set.

C: Use a programmed symbol set and specify the programmed symbol identifier by a single character.

H: Use a programmed symbol set and specify the programmed symbol identifier by two hexadecimal characters.

PSID

Programmed symbol set identifier depending on the PS operand specified.

C: Single EBCDIC character.

H: Two hexadecimal digits.

Trans

Background of the field.

Y: Field is transparent.

N: Field is opaque.

SOSI

Field can contain both EBCDIC and DBCS data. The DBCS data is indicated by a shift out (SO) character at the start of the data and a shift in (SI) character at the end of the DBCS data.

Y: Field contains both EBCDIC and DBCS data.

N: Field contains only EBCDIC data.

Outline

Draw a box around a field or to draw lines above, below or to the left or right of the field.

B: Draw a box around the field.

O: Other field defines where to draw lines.

Other

Field is enabled only if the Outline option is set to O.

L: Draw a line to the left of the field.

R: Draw a line to the right of the field.

O: Draw a line over the field.

U: Draw a line under the field.


Adding Map Names to the Mapset

The Map List screen enables you to add, modify, and delete map names from the mapset. It lists the map names defined for the mapset. If you are adding a map to a new mapset, no map names are listed on this screen. If you are modifying a mapset, the screen can list up to 170 map names.

  FIGURE 9-5 Screen Generation Utility-- Map List Screen

Screen shot showing the Map List screen with two map names.

The following function keys are active on the Map List screen:

Function Key

Action

PF3

Returns to the Map Set Characteristics screen.

PF4

Displays the Map Insert screen, which enables you to insert map names in the list. New names are inserted in front of the map name where the cursor is positioned.

  • To insert map names at the beginning of the list, place the cursor on the first map name in the list.
  • To insert map names after the last map in the list, place the cursor anywhere after the last map name.

PF5

Marks a map for deletion and invokes the Map Delete Confirmation screen, shown in FIGURE 9-14. To delete a map name from the mapset, place the cursor on the map name and press PF5. See Deleting a Map.

PF6

Modifies currently defined map names. Map names are validated to ensure that they are unique.

PF7

Displays the previous page of map names. If this is the first page of map names, this message is displayed:

Beginning of data reached

PF8

Displays the next page of map names. If this is the last page of map names, this message is displayed:

End of data reached

Enter

Returns to the Map Characteristics screen (see Customizing Map Characteristics). The map name to be processed is the one shown at the current cursor position.



procedure icon  To Add a New Map

1. Press PF4 on the Map List screen.

The blank Map List screen is displayed.

2. Type the name of the new map.

You can define up to 255 maps for any one mapset. Any map takes on the characteristics of the current mapset. You can override any of these characteristics for individual maps. The next section describes how to customize the characteristics of an individual map.

3. Press Enter to add the map.



Note - Map names must be unique within each mapset.




Customizing Map Characteristics

The Map Characteristics screen enables you to customize the characteristics of a single map.


procedure icon  To Customize Map Characteristics

1. On the Map List screen, position the cursor on the name of the map you want to customize and press Enter.

The Map Characteristics screen shown in FIGURE 9-6 is displayed.

Data on the Map Characteristics screen is equivalent to what is defined by the BMS DFHMDI macro instruction.

If the map was previously defined, its characteristics are displayed. If the map was just inserted into the mapset, the default characteristics are displayed.

  FIGURE 9-6 Screen Generation Utility-- Map Characteristics Screen

Screen shot showing the Map Characteristics screen.

2. Change the values on the screen according to your requirements.

See TABLE 9-3.

3. Press Enter to modify the map.

The following function keys are active on the Map Characteristics screen:

Function Key

Action

PF3

Returns to the Map List screen.

PF4

Displays the Extended Attribute screen for the map.

PF5

Displays the Format screen. This is a full-screen display that contains the current definition of a map. Use this function to define the screen layout. See Formatting a Screen.

PF6

Displays a full-screen version of the map as it appears to the end user, complete with protected, unprotected, numeric and highlighted fields. You can test the data entry fields by typing in sample data. The data is not saved.

PF7

Displays the previous map in the mapset. If this is the first map of the mapset, this message is displayed:

Beginning of data reached

PF8

Displays the next map in the mapset. If this is the last map of the mapset, this message is displayed:

End of data reached

Enter

Modifies map characteristics. Data on the screen is validated. If valid, the new information is accepted and this message is displayed:

Data modified

If any data does not pass the validation tests, the invalid fields are highlighted and the cursor is on the first invalid field. If any errors are detected, this message is displayed:

Invalid data


The following table lists the data fields on the Map Characteristics screen and acceptable values. These fields are validated when you press Enter on the Map Characteristics screen.

TABLE 9-3 Map Characteristics Screen Data Fields

Field Name

Description

Map name

Unique name of the map, from one to seven characters. The first character must be alphabetic.

Map size

 

# rows

Number of screen rows the map is to occupy; 1 to 240.

# columns

Number of screen columns the map is to occupy; 1 to 240.

Map positioning

 

Row: N

Row number position to place the map; from 1 to 240. You can specify only if the Row positioning indicator is #.

Row: indicator

Row position.

#: Place map according to row position and Map justification Row.

N: Place map on next available row. Applicable only when a logical message is being built.

S: Place map on same row as last mapset if space is available. Otherwise, place map on next completely available row. Applicable only when a logical message is being built.

Column: S

Column number position where to place the map, from 1 to 240. You can specify only if the Column: indicator is #.

Column: indicator

Column position.

#: Place map according to column position and Map justification Column.

N: Place map in next available column left or right based upon the column justification. Applicable only when a logical message is being built.

S: Place map in the same column as the last map sent that specified the same column position and column justification as this map. Applicable only when a logical message is being built.

Attribute ident

Code used during the Format screen processing to identify the start of a field. Valid characters are

!, @, #, $, %, *, +

Start printer

Overrides the mapset option for sending a start printer command to the printer by a BMS output mapping operation.

Y: Send start printer command.

N: Do not send start printer command.

Printer ln lth

Overrides the line length for the printer.

All options are supported for 3270-type devices.

4: 40-character print line.

6: 64-character print line.

8: 80-character print line.

D: Default printer line length is determined by the settings at the printer.

Free keyboard

Overrides the mapset option to free the keyboard after the map is sent.

Y: Turn off input inhibited status - frees the keyboard after the map is sent.

N: Turn on input inhibited status - does not free the keyboard after the map is sent.

Sound alarm

Overrides the mapset option to sound the audible alarm after the map displays.

Y: Sound alarm.

N: Do not sound alarm.

Reset MDT's

Overrides the mapset option to reset all Modified Data Tags (MDT) before the map displays on the terminal.

Y: Resets MDTs before displaying map.

N: Does not reset MDTs before displaying map.

Data format

Overrides the mapset option for the format/interpretation of data sent/received by the BMS processor.

F: Data is in field data format.

B: Data is in block format.

TIOA prefix

Overrides the mapset option on whether to include a 12-byte TIOA prefix when generating the symbolic description map.

Y: Include TIOA prefix.

N: Do not include TIOA prefix.

Map justification

 

Row

Row on which to place the map.

blank: Place the map according to row position.

F: Place the map first on a new page. Applies only if a logical message is being built.

L: Place the map last on the current page. Applies only if a logical message is being built.

Column

Column margin against which to justify the map.

L: Justify the map with the left margin.

R: Justify the map with the right margin.

Header

Allows the map to be used while a logical message is being built without terminating the overflow condition.

Y: Header map.

N: Not a header map.

Trailer

Allows the map to be used while a logical message is being built without terminating the overflow condition.

Y: Trailer map.

N: Not a trailer map.

Field validation

 

Must fill

Override the mapset option for the default value that all maps and fields are set to within the mapset.

Y: Any data field with this option set must be completely filled in with data. If the cursor is moved from this field and the field is not completely filled with data, the inhibit input condition is raised.

N: The Must Fill check is not performed.

Must enter

Override the mapset option for the default value that all maps and fields are set to within the mapset.

Y: Must enter data into any field with this flag set. If the cursor is moved from this field and no data was entered, the inhibit input condition is raised.

N: Data does not have to be entered into this field.

Outboard fmt

Override the mapset option to indicate whether or not outboard formatting is supported by the physical mapset. This option is not supported.

Y: Mapset is to support outboard formatting.

N: Mapset is not to support outboard formatting.

LDC mnemonic

Override the mapset 2-character or blank code in this field.


Handling Rows and Columns

The Map Size # rows and # columns fields of the Map Characteristics screen are handled in a special way when modified. These fields determine the maximum size of the data input screen to be formatted.

For example, if # rows is 2 and # columns is 80, then only two lines of the screen allow any data to be defined during the screen formatting process. If # rows is 24 and # columns is 80, then the entire screen can be formatted. If # rows is 10 and # columns is 80, only the area in the first 10 lines can contain format data.

If the screen is already formatted and you modify these fields, the screen format is affected. For example, if the number of columns in the previous example is decreased from 80 to 40, all fields defined past column 40 are dropped. Any fields that started before column 40 and ended after column 40 are truncated to column 40.


procedure icon  To Define Extended Attributes for a Map

1. On the Map Characteristics screen, press PF4 to display the map's Extended Attribute screen.

See FIGURE 9-7.



Note - This is the same screen that is displayed if you press PF5 on the Map Set Characteristics screen shown in FIGURE 9-5.



  FIGURE 9-7 Screen Generation Utility-- Extended Attribute Screen

Screen shot showing the Extended Attribute Screen.

2. Modify the attributes.

See TABLE 9-4 for a description of each attribute field.

All options specified on this screen override options that were specified for the mapset.

3. Press Enter to modify the map.

TABLE 9-4 Extended Attribute Screen Fields for a Map

Field Name

Description

Extended Attribute

Even though extended attributes can be specified for the map, only those attributes described in Extended Attributes are displayed.

N: Extended attributes are not supported or they are specified by the DSATTS and MAPATTS fields.

Y: Extended attributes are supported for the physical map and symbolic description map. Setting this field to Y is equivalent to specifying:

DSATTS=(COLOR,HILIGHT,VALIDN,PS)

and

MAPATTS=(COLOR,HILIGHT,VALIDN,PS)

M: Extended attributes are used in the physical map only. Setting this field to M is equivalent to specifying:

MAPATTS=(COLOR,HILIGHT,VALIDN,PS)

DSATTS

Exact attributes to use in the symbolic description map. Specify a string up to seven characters. Each character stands for a specific extended attribute. If an attribute is specified in this field, it should also be displayed in the MAPATTS field.

C: Color

H: Hilight

O: Outline

P: PS

S: SOSI

T: Transp

V: Validn

MAPATTS

Exact attributes to use in the map. Specify a string up to seven characters. Each character stands for a specific extended attribute.

C: Color

H: Hilight

O: Outline

P: PS

S: SOSI

T: Transp

V: Validn

Color

Extended attribute color default to assign to map and fields defined within the map. Sun MTP reserves space in the symbolic map for the assignment of color attributes and provides support on certain devices. See Extended Attributes for more information.

D: Default

B: Blue

R: Red

P: Pink

G: Green

T: Turquoise

Y: Yellow

N: Neutral

Hilight

Default highlighting attribute to assign to the map and fields defined within the map. Sun MTP reserves space in the symbolic map for highlight attributes. The hilight attribute is supported for various devices. See Extended Attributes.

O: Off

B: Blinking

R: Reverse video

U: Underline

Validn

Indicates whether automatic validation is active.

T: Trigger

F: Must fill

E: Must enter

PS

Indicates whether to use programmed symbols.

B: Use the base symbol set.

C: Use a programmed symbol set. The programmed symbol identifier is specified using a single character.

H: Use a programmed symbol set. The programmed symbol identifier is specified using two hexadecimal characters.

PSID

Programmed symbol set identifier depending on the PS operand specified.

C: Single EBCDIC character.

H: Two hexadecimal digits.

Trans

Indicates whether the background of the field is transparent or opaque.

Y: Field is transparent.

N: Field is opaque.

SOSI

Field can contain both EBCDIC and DBCS data. The DBCS data is indicated by a shift out (SO) character at the start of the data and a shift in (SI) character at the end of the DBCS data.

Y: Field contains both EBCDIC and DBCS data.

N: Field contains only EBCDIC data.

Outline

Draw a box around a field or to draw lines above, below or to the left or right of the field.

B: Draw a box around the field.

O: The Other field defines the outline.

Other

Field is enabled if the Outline option is an O.

L: Draw a line to the left of the field.

R: Draw a line to the right of the field.

O: Draw a line over the field.

U: Draw a line under the field.



Formatting a Screen

The Format screen function enables you to design maps by typing data onto the screen. Press PF5 on the Map Characteristics screen to open the format function.

If the screen was formatted, current format data is displayed. If you are formatting the screen for the first time, the screen is blank. You can define up to 1,023 fields for each map in a mapset.

All cursor controls on the keyboard function normally. Map attributes currently assigned apply when formatting the screen. This means that if you specified a map size smaller than a full screen on the Map Characteristics screen, only that portion of the screen accepts keyboard input. The remainder of the screen is protected and does not allow any data entry.

You can format:

The physical terminal used to format a screen must be at least as large as the screen itself. For example, a Model 5 terminal can be used to format either Model 2 or Model 5 screens, but not Model 4 screens.

Although they are not listed on the blank format screen, the following function keys are active during the screen formatting process:

Function Key

Action

PF1

Opens the Help screen described in To Display the Formatting Help Screen.

PF3

Returns to the Map Characteristics screen.

PF4

Shifts the line left or right n characters. See To Shift a Line to the Right or Left.

PF5

Shifts the screen left or right n characters. This function is similar to the Shift Line function. The active keys on this screen are:

  • PF7: Shifts the entire screen left n characters.
  • PF8: Shifts the entire screen right n characters.
  • PF3: Returns to the Format screen without shifting any data.

PF6

Moves or copies the current line. See To Move or Copy the Current Line.

PF7

Deletes or inserts n characters. See To Delete or Insert Characters.

PF8

Deletes or inserts n lines. This function is similar to the Delete/Insert Characters function. The active keys on this screen are:

  • PF7: Deletes n lines beginning with the current line. All remaining lines are moved up on the screen.
  • PF8: Inserts n blank lines before the current line. All lines beginning with the current line are moved down on the screen. Lines moved past the end of the map are deleted.
  • PF3: Has the same function on both screens; that is, returns to the Format screen without modifying any data.

PF9

Centers all fields on the current line. The number of blank characters before the first field and the number of blank characters after the last field are evenly distributed to both the left and right margins. If the number of blank characters is not evenly divisible by 2, the extra blank character is added to the right.

Enter

Accepts the Format screen data and displays the Field Characteristics screen. You must press Enter to save any screen format data. If you change the format of the screen and press PF3 without first pressing Enter, the changes are lost.



procedure icon  To Display the Formatting Help Screen

single-step bulletPress PF1 on the Format screen to display the Help screen.

Press PF3 to return to the Format screen.

This screen explains the function of each PF key, the Enter key, and describes how to identify the current character, current line, and current field.

  FIGURE 9-8 Format Screen--Help

Screen shot of the Help screen for the SGU Format screen.

Attribute Identifiers

An attribute identifier is a unique character that identifies the beginning of a field. It immediately precedes a data field and occupies that physical location on the screen. It is also used as an aid in the automatic assignment of attributes to the field. Attribute identifiers are defined when you assign characteristics to a map. The default attribute identifier is @. See Customizing Map Characteristics.

The attribute identifier character you select must not appear anywhere on the formatted screen as a literal constant.

FIGURE 9-9 shows a formatted screen with the @ character as the attribute identifier. To display a formatted screen, first select a map from the Map List screen. When the Map Characteristics screen is displayed, press PF5. There are 26 fields defined in this example.

  FIGURE 9-9 Formatted Screen--Example


If an attribute identifier immediately follows another or is the last character of a line, an error message is displayed when you press Enter. An attribute identifier can be the last character of a line if the map is the full width of the terminal and the field wraps to the next line.

Moving an attribute identifier on the screen using the keyboard insert and delete keys can affect the previously assigned field characteristic as follows:

Do not modify any field characteristics until the screen format is satisfactory.

To move a field and retain its modified values, use the function keys described in Formatting a Screen.

Field Attribute Defaults

When you define a new field, you can either assign attributes manually or have the SGU assign attributes automatically. If you assign attributes manually, the attributes for old fields do not change. To implement automatic assignment of new field attributes, use the Default field ident field on the Map Set Characteristics screen. If all the characters you enter in a field on the Format screen match one of the three characters defined in the Default field ident field, then the field's attributes are set as follows.

You can define one default field identifier to any one mapset. Unless they are explicitly changed, the Default field ident characters are:

X

Alphanumeric

9

Numeric

.

Hexadecimal


All the characters match the default alphanumeric field ident

All the characters match the default numeric field ident

All the characters match the default hex field ident

All the characters are blanks

Otherwise


procedure icon  To Shift a Line to the Right or Left

1. Press PF4 on the Format screen to display the Shift Line screen shown in FIGURE 9-10.

2. Specify the number of characters to shift.

3. Press a PF key:

4. Press PF3 to return to the Format screen.

  FIGURE 9-10 Format Screen-- Shift Line Screen

Screen shot showing the Shift Line screen.

The following function keys are active on the Shift Line screen:

Function Key

Action

PF3

Returns to the Format screen without shifting any data.

PF7

Shifts the entire line left n characters.

PF8

Shifts the entire line right n characters.



procedure icon  To Move or Copy the Current Line

1. Press PF6 on the Format screen to display the following screen.

  FIGURE 9-11 Format Screen--Move/Copy Line Screen

Screen showing the Move/Copy line screen.

2. In the To line field, type the line, relative to the beginning of the map, to which you are moving the selected line.

This is not necessarily the line where it is displayed on the format screen. When the Move/Copy screen is first displayed, the To line field contains the line number of the line being moved.

3. Press a PF key.

4. Press PF3 to return to the Format screen.

The following function keys are active on the screen:

Function Key

Action

PF3

Cancels the operation and returns to the Format screen.

PF7

After specifying the To line, moves the current line to another line on the screen. If the To line is blank, all fields defined in the current line are copied to the To line, then the fields defined on the current line are deleted. If the To line is not blank, this message is displayed:

KIX1457E Data exists on target line. Hit key again to overwrite.

PF8

Copies the current line to the line specified by the To line. Processing is similar to the Move operation, except the current line fields are not deleted.



procedure icon  To Delete or Insert Characters

1. Press PF7 on the Format screen to display the following screen.

  FIGURE 9-12 Format Screen-- Delete/Insert Characters Screen

Screen shot showing the Delete/Insert Characters screen.

2. Type the number of characters to delete or insert beginning with the character specified by the cursor location on the Format screen.

3. Press a PF key.

If the current cursor position is within an existing field when you are deleting characters, the field length is reduced by the number of characters specified. All fields to the right of the current cursor position are moved left by the number of characters specified. If the number of characters to be deleted includes part of the next field, that field is deleted. Any initial value associated with a deleted field is left on the screen; however, it is no longer associated with any field.

Characters are inserted in front of the character where the cursor is located on the Format screen. If the current cursor position is within an existing field, the field length is expanded by the number of characters inserted. All fields to the right of the current cursor position are moved right by the number of characters specified. If a field is repositioned past the right margin in the process, it is deleted from the map.

4. Press PF3 to return to the Format screen.

Any previously modified field attributes are maintained. See Attribute Identifiers.

Modifying Field Characteristics

The position of the cursor is important during the screen formatting process. The field on which the cursor is placed is the first one displayed on the Field Characteristics screen when you press the Enter key. When you return to the Format screen, the cursor is displayed on the Attribute Identifier of the last field you viewed on the Field Characteristics screen. You can modify specific fields by switching back and forth between the Format screen and the Field Characteristics screen.


procedure icon  To Modify Field Characteristics

1. Press Enter on the Format screen to open the Field Characteristics screen shown in FIGURE 9-13.

Data on this screen is equivalent to data that can be defined by the BMS DFHMDF macro instruction.

  FIGURE 9-13 Field Characteristics Screen

Screen shot showing the Field Characteristics screen.

2. Modify the data fields.

See TABLE 9-5 for a list of fields and their values.

3. When you are done, press Enter to modify the fields.

4. Press PF3 to return to the Format screen.

The following function keys are active on the Field Characteristics screen:

Function Key

Action

PF3

Returns to Format screen.

PF7

Displays the previous field. If this is the first field of the map, this message is displayed:

Beginning of data reached

PF8

Displays the next field. If this is the last field of the map, this message is displayed:

End of data reached

Enter

Modifies the field characteristics and validates the data. If valid, the new information is accepted and this message is displayed:

Data modified

If any data is invalid, those fields are highlighted and the cursor is on the first invalid field. This message is displayed:

Invalid data


The following table lists the data fields on the Field Characteristics screen and their acceptable values. These fields are validated when you press Enter. See Extended Attributes for information about the supported extended attributes.

TABLE 9-5 Field Characteristics Screen Data Fields

Field Name

Description

Field name

Unique name of the field, from 1 to 7 characters. The first character must be alphabetic.

Group name

Unique name of the group, from 1 to 7 characters. The first character must be alphabetic.

Occurs

Number of times the field is to repeat, from 1 through 999. If a group name is specified, this field must have a value of 1.

Row

Row position within the map where the attribute identifier is defined. This is a display-only field.

Column

Column position within the map where the attribute identifier is defined. This is a display-only field.

Length

Length of the field, from 1 to 256 characters. The value is validated to ensure that the length specified does not extend the field into the next field.

Protection

Protection attribute of the field.

A: Automatic skip

U: Unprotected

P: Protected

Color

Overrides the corresponding map option.

D: Default

B: Blue

R: Red

P: Pink

G: Green

T: Turquoise

Y: Yellow

N: Neutral

Numeric

Indicates whether or not this field is restricted to numeric data only.

Y: Allow only numeric data.

N: Allow alphanumeric data.

Intensity

Intensity of the field when displayed on the terminal.

N: Display field in normal intensity.

B: Display field in high intensity (bright).

D: Does not display field (dark).

Highlight

Overrides the corresponding map option for the default highlighting attribute to assign to the map and fields defined within the map.

O: Off

B: Blinking

R: Reverse video

U: Underline

Pen detect

Indicates whether this field is potentially detectable by light pen. This option is not supported.

Y: Field is detectable by light pen.

N: Field is not detectable by light pen.

Must fill

Overrides the map option for the default value that the map and fields are set to within the map.

Y: Any data field with this option set must be completely filled in with data. If the cursor is moved from this field and the field is not completely filled with data, the inhibit input condition is raised.

N: The Must Fill check is not performed.

Ins cursor

Indicates whether or not to position the cursor to this field. If multiple Ins cursor fields occur for a map, the terminal places the cursor at the last field with this option selected.

Y: Position cursor at the first position of this field. The first position of a field immediately follows the field attribute.

N: Does not position the cursor at this field.

Must enter

Overrides the map option for the default value that the map and fields are set to within the map.

Y: Must enter data into any field when this flag is set. If the cursor is moved from this field and no data was entered, the inhibit input condition is raised.

N: Data does not have to be entered into this field.

MDT set

Indicates whether or not to send this field with the modified data tag (MDT) set.

Y: Set the MDT so that a subsequent read of the terminal returns the data within this field.

N: Does not set the MDT.

Symbol set

Overrides the map option that indicates whether programmed symbols are to be used.

B: Use the base symbol set.

C: Use a programmed symbol set. The programmed symbol identifier is specified using a single character.

H: Use a programmed symbol set. The programmed symbol identifier is specified using two hexadecimal characters.

Justify

Type of justification to perform on data entered in this field.

L: Left justify the data in the symbolic description map.

R: Right justify the data in the symbolic description map.

Set ID

Overrides the corresponding map option. Use only if the symbol set is (C)har or (H)ex.

Fill char

Character with which to pad the remaining symbolic description data area of a field after justification, if the length of the data returned is less than the field length.

blank: Blank fill

0: Zero fill

SOSI

Overrides the corresponding map option. Field can contain both EBCDIC and DBCS data. The DBCS data is indicated by a shift out (SO) character at the start of the data and a shift in (SI) character at the end of the DBCS data.

Y: Field contains both EBCDIC and DBCS data.

N: Field contains only EBCDIC data.

Outline

Overrides the corresponding map option. Draw a box around a field or to draw lines above, below or to the left or right of the field.

B: Draw a box around the field.

O: The Other field defines the outline.

Other

Enabled only if the Outline option is O.

L: Draw a line to the left of the field.

R: Draw a line to the right of the field.

O: Draw a line over the field.

U: Draw a line under the field.

Transp

Overrides the corresponding map option and indicates whether the background of the field is transparent or opaque.

Y: Field is transparent.

N: Field is opaque

Picin

COBOL or PL/I picture clause for the field when defining the symbolic description map; 1 to 20 characters.

Not valid in C.

Picout

COBOL or PL/I picture clause, depending on the value of the Language field on the Map Set Characteristics screen, for the field when defining the symbolic description map; 1 to 20 characters. A maximum combined total of 100 Picin and Picout clauses can be defined for a map.

Not valid in C.

Init Data

Indicates whether to send initial data for the field for an output mapping operation.

C: Initial data is defined and is character data.

H: Initial data is defined and is hexadecimal data.

N: No initial data is defined for the field.

Initial value

Initial data to send for an output mapping operation. After you type C or H in the Init Data field, the SGU positions the cursor at the beginning of the Initial value field. Data entered in this field is validated based on the code specified in the Init Data field. If Init Data is:

C: Data is any alphanumeric characters and cannot exceed the field length.

H: Data is valid hexadecimal characters and cannot exceed twice the field length. The number of characters specified must be evenly divisible by 2.

N: No initial value.



Deleting a Map


procedure icon  To Delete a Map

1. Press the PF5 key on the Map List screen to mark the selected map for deletion.

The screen shown in FIGURE 9-14 is displayed and the marked map is highlighted in bold.

  FIGURE 9-14 Map List Maintenance-- Map List Delete Map Screen

Screen shot showing the Map List Delete Map screen with map to be deleted in bold.

2. Press Enter to delete the map.

There is no confirmation prompt.


Creating BMS Macro Instructions

After you create the .sgu file, you must create a macro instructions file (a .bms file) that can be assembled by the Sun MTP BMS Assembler or exported to an IBM CICS system for assembly. The assembled file contains macros that create the physical map used during program execution and the symbolic map that is copied into an application program.


procedure icon  To Create a .bms File

1. On the Maps Maintenance Menu, select an .sgu file and press PF12.

2. When the screen shown in FIGURE 9-15 is displayed, modify the values as needed.

The SGU map set Filename and Environment fields default to the .sgu file you selected on the Maps Maintenance Menu. The BMS macro Filename and Environment fields default to the file name and directory of the .sgu file.

When you generate the BMS file, the quote character set in the Quote/Apost field is used to enclose strings. Using QUOTE in this field will enclose strings in double quotation marks ("). Using APOST will enclose strings in apostrophes (').

  FIGURE 9-15 Generate BMS Macro Screen

Screen shot showing the SGU map set file name and environment variable, the BMS macro file name and environment variable, and the Quote/Apost field.[ D ]

3. Press Enter to generate the BMS macro instructions.

4. Press PF3 to return to the Maps Maintenance Menu.


Displaying BMS Files

When you start the SGU, the Maps Maintenance Menu shown in FIGURE 9-2 is displayed.


procedure icon  To Display the BMS Maintenance Menu

single-step bulletPress PF5 on the Maps Maintenance Menu.

The BMS Maintenance Menu, which shows files with a .bms extension, is displayed.

  FIGURE 9-16 BMS Maintenance Menu

Screen shot showing the BMS Maintenance Menu. [ D ]

procedure icon  To Display Files in a Different Directory

1. In the Directory field, type the name of the directory containing the .bms files you want to display; up to 50 characters.

The first element in the directory can be an environment variable, which can be followed by other subdirectories separated by slashes.

2. Press Enter to accept the change.

The file list changes to show the .bms files in the directory you specified.

The following function keys are active on the BMS Maintenance Menu:

Function Key

Action

PF3

Closes the BMS Maintenance Menu and returns to the Development System main menu or a blank transaction screen.

PF2

Executes the kixed shell script with the selected file as the work file. If no file is selected, the file that is marked by the location of the cursor is used. By default, the vi editor is called.

PF4

Refreshes the data in the file list portion of the screen. After a file is modified, press this key to display any changes.

PF5

Displays the Maps Maintenance Menu. The Maps Maintenance Menu is described in Maps Maintenance Menu.

PF6

Assembles selected files into physical maps. These physical maps have an extension of .map. See Assembling a BMS Map.

PF7

Displays the previous page of files. If this is the first page, this message is displayed:

Beginning of data reached

PF8

Displays the next page of files. If this is the last page, this message is displayed:

End of data reached

PF9

Redisplays the contents of the directory, sorted by file name.

PF10

Redisplays the contents of the directory, sorted by the files' date of modification.

PF11

Redisplays the contents of the directory, sorted by file size.

PF12

Creates an .sgu file from a .bms file. See Creating an .sgu Mapset File.

Enter

Makes effective any changes to the directory field. The file display area is cleared and the files in the new directory are displayed.



Assembling a BMS Map

You must assemble a .bms file before you can use it in your programs. An assembled file has a .map extension. Sun MTP provides two methods for assembling maps:


procedure icon  To Assemble a Map Using the SGU

1. On the Maps Maintenance Menu, press PF5 to open the BMS Maintenance Menu.

  FIGURE 9-17 BMS Maintenance Menu

Screen shot showing the BMS Maintenance Menu. [ D ]

2. Select a .bms file and press PF6.

3. When the screen shown in FIGURE 9-18 is displayed:

a. Modify the Output filename and Output Environment fields, if needed.

They default to the values on BMS Maintenance Menu.

b. If you want the assembler to generate a COBOL copybook, a C header file, or a PL/I include file, mark that option with a Y.

The appropriate member is created based on the value of LANG in the .bms file.

c. If you want the assembler to generate a listing file, mark that option with a Y.

d. Press Enter to accept the changes before assembling.

If you do not want to assemble the file, press PF3 to return to the BMS Maintenance Menu.

  FIGURE 9-18 Set Assembler Options Screen

Screen shot showing the Set Assembler Options Screen.

4. Press PF4 to generate the .map file.

A screen is displayed with the results of the assembly. If you generated a list file, it is also displayed.

  FIGURE 9-19 Assembler Results

Screen shot showing an example of the results of an assembly.

5. To save this temporary listing file, type:

:wq filename

The file is saved to the directory specified in the Output Environment field.

If you do not want to save the file, type :q to close this screen and return to the BMS Maintenance Menu.


procedure icon  To Assemble a Map Using kixbms

single-step bulletType the kixbms command with the appropriate options using the .bms file as input.

For a description of all the options, refer to the Sun Mainframe Transaction Processing Software Reference Guide.

Example: Assemble a COBOL map and generate a COBOL copybook. The copybook is created if LANG=COBOL in the .bms file. The output file is automatically named SB001.map.

$ kixbms -c  SB001.bms

Example: Assemble a C map named JB045A and generate a C header file. The header file is created if LANG=C in the .bms file. You must specify the -o option and map name if you are using a different name for the .map file.

$ kixbms -c -o JB045A.map JB045.bms


Creating an .sgu Mapset File

You can create an .sgu file from a .bms file. This is useful for maintaining BMS source code imported from an IBM CICS system. There are two methods for creating an .sgu file:


procedure icon  To Create an .sgu File Using the SGU

1. On the BMS Maintenance Menu, select a file and press PF12.

2. When the screen shown in FIGURE 9-20 is displayed, change any field as needed:

a. The name of the input file is displayed in the BMS macro field.

It defaults to the file selected on the BMS Maintenance Menu. This file contains BMS macro instructions.

b. The file to be created is displayed in the SGU map set field, which defaults to the name of the BMS macro file selected for processing.

c. The Environment fields default to the directory specified on the BMS Maintenance Menu.

d. When you generate the .sgu file, the quote character set in the Quote/Apost field is used to enclose strings.

  FIGURE 9-20 Generate SGU Screen

Screen shot showing the screen to generate an SGU file.

3. Press Enter to create the .sgu file.

Sun MTP displays a screen with the results of the assembly.

If you do not want to create the file, press PF3 to return to the BMS Maintenance Menu.

4. Type :q to close this screen and return to the BMS Maintenance Menu.


procedure icon  To Create an .sgu File Using kixbms

single-step bulletUse the kixbms utility with the-s option to create an .sgu file from a .bms file.

Example: Generate an .sgu file from the TB012.bms file. The output file is automatically named TB012.sgu.

$ kixbms -s TB012.bms

Example: Generate an .sgu file named TB012A from the TB012.bms file. You must specify the -o option to change the name of the output file.

$ kixbms -s -o TB012A.sgu TB012.bms