Specifying a Host ID
In the Macro Editor, a Host ID input field is displayed in the editing window of each descriptor or action that can refer to a session other than the original session that launches the macro (see the lists of descriptors and actions in Implementation). In the Code Editor, the hostid attribute is valid in the corresponding XML elements.
- A session ID (such as A), followed by
- A colon (:), followed by
- A session name (such as 3270 Display).
- Open the session properties window.
- In the left pane, click Start Options.
- In the right pane, in the Session ID listbox, change the value from Automatic to the value that you want to use (A-Z).
If, instead, you let the Z and I Emulator for Web client assign the session ID automatically, then the session ID can be different (for example, C) than the session ID that you use in the macro script (such as B), and if so then the Host ID value is also different (C:3270 Display instead of B:3270 Display). Consequently, when the end user launches the macro, the macro runtime can terminate the macro playback with an error because the macro contains a reference (B:3270 Display) to a session that is not active and connected.
- Open the session properties window.
- In the left pane, click Connection.
- In the right pane, in the Session Name field, type the session name that you want to use.