Poke Commands
You can send the following items to a Session topic:
Cursor—Sets the cursor position to the new value in the presentation space. The syntax for the value field is either nnn or Fnn[U/P]. nnn sets the position to the numeric value specified whereas Fnn[U/P] sets the position to the first position of the specified field. For additional information, see the Cursor example.
EscChar—Sets the escape character used for sending keys. The default escape character is '@'.
Keystroke—Presses a collection of keystrokes. The string can contain up to 255 characters. The string format for keys is in HLLAPI mnemonic format. This allows you to enter normal text and press 3270 action keys such as Home, Pfx, and Clear. For additional information, see the Keystroke example.
PS—Inserts the string into the entire presentation space. In this mode, data over protected fields is ignored. Therefore, you can retrieve the entire PS, update certain portions, and then replace the entire PS.
Pnnnn[F/Lmmm]—Inserts the string into a specific position in the presentation space. Data is inserted until the end of the field or end of the data string, whichever comes first.
- P100—Inserts the string at position 100 until the end of field.
- P100F—Inserts the string in the field that contains position 100.
- P100L20—Inserts the string at position 100 for a maximum length of 20 characters, regardless of the length of the string.
Fnn[U]—Inserts the string into a specific field in the presentation space. Data is inserted until the end of the field or end of the data string, whichever comes first.
- F2—Inserts the string starting in the first position of the second field.
- F2U—Inserts the string starting in the first position of the second unprotected field.
Rxx—Inserts the string into the specified row in the presentation space. Data is written only into unprotected fields.
- R2—Inserts the string into the second row of the presentation space.
Search—Sets the search string for the Search request command.