To edit new and existing fields in this chapter, you will use the Field and Literal Definition screens to make specifications for fields, such as the display intensity of the runtime field, define error messages for the department ID and department head ID variable field, and so forth.
You selected fields for editing by using the Layout screen earlier in this chapter, in Step 2: Add and Select Map Fields. The following table summarizes the specifications that you will make when editing each selected field. You will edit each selected field's definition as indicated in this table.
For more information on using prompts to edit field definitions, see Step 5: Modify the map layout.
|
Location of field on map |
Purpose of field |
Specifications for field |
|---|---|---|
|
After DATE literal field (in the upper right corner) |
Displays the current date |
Element name: AGR-DATE1 Protected
Edit Picture XX/XX/XX |
|
After DEPARTMENT ID literal field |
Displays a department's unique ID number |
Bright display Error message: *ENTER A NUMERIC DEPT ID* |
|
After HEAD ID literal field |
Displays the ID number for the head of the department |
Error message: *ENTER A NUMERIC DEPT ID* |
|
Literal NEXT RESPONSE in lower left corner |
Prompts the user to input a response name |
ROW .......... : 18 |
|
After NEXT RESPONSE literal field |
Allows a user to input a response name |
ROW .......... : 18 |
|
1 AGR-DATE is an element in ADSO-APPLICATION-GLOBAL-RECORD |
||
Press [PF5] from the Layout screen to begin editing fields. This brings you to the first definition screen, a Field Definition screen for the DATE variable field.
Editing the DATE Variable Field
On the Field Definition screen, you edit the DATE variable field information as shown:
Field Definition Page 1 of 7 Map name: XXXMAP Version: 1 ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 DATE.....: _ ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 Field at row 2 column 16 Drop field (/) _ Element name: agr-date Subscript In record Version Edit Picture xx/xx/xx Display intensity 1 1. Normal 2. Bright 3. Hidden At end of field 1 1. Auto-tab 2. Lock keyboard 3. Take no action Unprotected (/) . . . . . / Required (/). . . . . . _ Automatically edited (/) / Skipped by tab key (/) _ DC366004 Specify the variable field and any attributes F1=Help F3=Exit F4=Prev F5=Next F6=Preview F8=Fwd
When you press [Enter], the Field Definition screen is redisplayed with a confirming message.
Field Definition Page 1 of 7 Map name: XXXMAP Version: ...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 FUNCTION: ________ DATE....: ________ ...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 Field at row 2 column 16 Drop field (/) _ Element name: AGR-DATE Subscript In record ADSO-APPLICATION-GLOBAL-RECORD Version 1 Edit Picture XX/XX/XX Display intensity 1 1. Normal 2. Bright 3. Hidden At end of field 1 1. Auto-tab 2. Lock keyboard 3. Take no action Unprotected (/) . . . . . / Required (/). . . . . . _ Automatically edited (/) / Skipped by tab key (/) _ DC366001 Map options processed successfully F1=Help F3=Exit F4=Prev F5=Next F6=Preview F8=Fwd
This message informs you that the new field definition contains no errors and has been successfully added to the map. Underscores displayed for the field show you the length of the variable field.
Editing the DEPARTMENT ID Variable Field
The next map field selected for editing is the DEPARTMENT ID variable field. To edit this field, you will:
Pressing [PF5] brings the Field Definition screen highlighting the variable field for the department ID.
Field Definition Page 1 of 7 Map name: XXXMAP Version: 1 ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 DEPARTMENT ID ..........: _____ ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 Field at row 2 column 16 Drop field (/) _ Element name: DEPT-ID-0410 Subscript In record DEPARTMENT Version 100 Edit Picture 9(4) Display intensity 2 1. Normal 2. Bright 3. Hidden At end of field 1 1. Auto-tab 2. Lock keyboard 3. Take no action Unprotected (/) . . . . . / Required (/). . . . . . _ Automatically edited (/) / Skipped by tab key (/) _ DC366004 Specify the variable field and any attributes F1=Help F3=Exit F4=Prev F5=Next F6=Preview F8=Fwd
When you press [Enter] to input your modification, the Field Definition screen displays a confirming message.
This message informs you that an existing field definition contains no errors and has been successfully modified in the map.
Defining an Error Message
To define a message for this field, press [PF8] twice (or change the page number in the upper right corner) to get to page 3 - Additional Edit Criteria - of the Field Definition screen.
Sample Additional Edit Criteria Screen
Additional Edit Criteria Page 3 of 7 Map name: XXXMAP Version: 1 Element name DEPT-ID-0410 Subscript In record DEPARTMENT Version 1 Edit table name . . . ________ Version ____ Link with map (/) _ Edit type . . . . . _ 1.Valid values 2.Invalid values Code table name . . . ________ Version ____ Link with map (/) _ Error message (specify ID or text) ID. . . . . . . . . Prefix __ Number ______ Text. . . . . . . . ________________________________________ ________________________________________ DC365804 Specify edit options F1=Help F3=Exit F4=Prev F5=Next F6=Preview F7=Bkwd F8=Fwd
Screen Prompts
Error message—:i1.ERROR MSG Enter the text for the message that will display for the field when an error is encountered.
Add the error message associated with the DEPARTMENT ID variable field as shown:
Additional Edit Criteria Page 3 of 7 Map name: XXXMAP Version: 1 Element name DEPT-ID-0410 Subscript In record DEPARTMENT Version 1 Edit table name . . . ________ Version ____ Link with map (/) _ Edit type . . . . . _ 1.Valid values 2.Invalid values Code table name . . . ________ Version ____ Link with map (/) _ Error message (specify ID or text) ID. . . . . . . . . Prefix __ Number ______ Text. . . . . . . . *enter a numeric dept id*_______________ ________________________________________ DC365804 Specify edit options F1=Help F3=Exit F4=Prev F5=Next F6=Preview F7=Bkwd F8=Fwd
A confirming message is displayed when your specifications on the Additional Edit Criteria screen contain no errors and have modified the field definition.
Press [PF5] to have the Field Definition screen for the next select field displayed.
Editing the HEAD ID Variable Field
The next field selected for editing is the HEAD ID variable field. You need to define an error message for this field by using the Additional Edit Criteria screen.
Additional Edit Criteria Page 3 of 7 Map name: XXXMAP Version: 1 Element name DEPT-ID-0410 Subscript In record DEPARTMENT Version 1 Edit table name . . . ________ Version ____ Link with map (/) _ Edit type . . . . . _ 1.Valid values 2.Invalid values Code table name . . . ________ Version ____ Link with map (/) _ Error message (specify ID or text) ID. . . . . . . . . Prefix __ Number ______ Text. . . . . . . . *dept head ids are numeric*_____________ ________________________________________ DC365804 Specify edit options F1=Help F3=Exit F4=Prev F5=Next F6=Preview F7=Bkwd F8=Fwd
When you have successfully defined an error message for the DEPT-HEAD-ID variable field, you can edit the next selected field. To display the next selected field, press [PF5]. MAPC displays the Literal Definition screen for the NEXT RESPONSE literal field.
Displaying and Moving the NEXT RESPONSE Literal Field
To move the NEXT RESPONSE literal field, change the row number to reflect the new position. (Remember that you could have used the Layout screen with the alternate PF keys to move both this literal field and its variable field.)
Literal Definition Page 1 of 2 Map name: XXXMAP Version: ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 NEXT RESPONSE: ________ _ ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 Field at row 18 column 3 Drop field (/) _
After you press [Enter], the NEXT RESPONSE literal field is displayed in its new location.
Displaying and Moving the NEXT RESPONSE Variable Field
Press [PF5] to see the next field to be defined. The next field is the NEXT RESPONSE variable field. Move this field to row 18.
Field Definition Page 1 of 7 Map name: XXXMAP Version: ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 NEXT RESPONSE: ________ _ ...5...10...15...20...25...30...35...40...45...50...55...60...65...70...75...80 Field at row 18 column 19 Drop field (/) _ Element name: AGR-CURRENT-RESPONSE Length 8 Display intensity 2 1. Normal 2. Bright 3. Hidden At end of field 3 1. Auto-tab 2. Lock keyboard 3. Take no action Unprotected (/) . . . . . / Required (/). . . . . . _ Automatically edited (/) _ Skipped by tab key (/) DC366001 Map options processed successfully F1=Help F3=Exit F4=Prev F5=Next F6=Preview F8=Fwd
After you press [Enter], the Field Definition screen for the response variable field is redisplayed with a confirming message.
You have edited all of the fields you selected for editing when you used the Layout screen earlier in this chapter, in Step 2: Add and Select Map Fields.
Pressing [PF5] brings you to Main Menu screen.
Before you recompile the map, you can display the current layout for map XXXMAP.
|
Copyright © 2013 CA.
All rights reserved.
|
|