306 Using IBM WebSphere Host Access Transformation Services V5
8. Add another prompt action. Repeat step 5 on page 304. This time, set the
cursor in the Password field shown in Figure 4-12 on page 304. In the Add
Prompt Action window (Figure 4-14), complete these tasks:
a. For Name, type setPWD.
b. For Default value, type pwd.
c. Under Handle Macro Prompt, select Use Web Express Logon.
d. For Prompt type, select Password.
e. Click OK to add this action.
Figure 4-14 Add Prompt Action for password
9. You return to the HATS terminal screen. Now enter password. Press the Tab
key. The cursor moves to the Program/procedure input field in terminal
window. Press Enter to log on.
Chapter 4. Using Web Express Logon with HATS portlets 307
10.You see an AS/400 program message screen (Figure 4-15) in the HATS
terminal since with the same user name is already logged on another
session. Verify the contents in the Macro Navigator pane with yours.
Figure 4-15 Enter program message screen
11.Click the Define Screen Recognition Criteria button in the toolbar as shown
in Figure 4-16.
Figure 4-16 Clicking the Define Screen Recognition Criteria button
308 Using IBM WebSphere Host Access Transformation Services V5
12.The Define Screen Recognition Criteria – Select Screen Recognition Criteria
window (Figure 4-17) opens. Follow these steps:
a. For Screen Name, type Message Screen.
b. Click and drag to draw a rectangular region.
c. Select This is a transient screen.
d. Under String position, select At a specified position.
e. Click Finish to complete the screen definition.
Figure 4-17 Define program message screen criteria
13.In the HATS terminal window, press Enter to continue the macro to the next
screen.
Chapter 4. Using Web Express Logon with HATS portlets 309
14.You arrive at the AS/400 Main Menu screen. Click the Define Screen
Recognition Criteria icon in the toolbar as shown in Figure 4-18.
Figure 4-18 Clicking the Define Screen Recognition Criteria button
15.In the Define Screen Recognition Criteria – Select Screen Recognition
Criteria window (Figure 4-19), follow these steps:
a. For Screen Name, type Main Menu.
b. Click and drag to draw a rectangular region.
c. Under String position, select At a specified position.
d. Click Finish to complete the screen definition.
Figure 4-19 Defining the criteria for the Main Menu screen
310 Using IBM WebSphere Host Access Transformation Services V5
16.In the Host Terminal window (Figure 4-20), click the Stop Macro button to
end the macro recording.
Figure 4-20 Clicking the Stop Macro button
17.In the HATS terminal window Macro Navigator view, select some useless
actions captured during recording as shown in the example on the left. Press
the Delete key to remove these items. Then the macro should appear as
shown in the example on the right.
Figure 4-21 Removing useless actions in the macro
18.In Host Terminal, click the Save Macro button to save the macro and close
the window. We are finished recording the logon macro.
Figure 4-22 Save macro
It’s a good practice to test the macro after you create it. You need to verify if it
works as we expected. For our scenario, the macro we created is simple.
Before
After

Get Using IBM WebSphere Host Access Transformation Services V5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.