CURSRSEL
|
Function
The CURSRSEL statement simulates the action of the Cursor Select key on the 3270 display terminals. It is valid for simulation of these terminals only.
Examples
cursor(index(screen,'XXXX')) /* Position cursor on first */
/* occurrence of XXXX. */
btab /* Back up to input field. */
cursrsel /* Select this item. */
cursor(index(screen,'YYYY')) /* Position cursor on first */
/* occurrence of YYYY. */
btab /* Back up to input field. */
cursrsel /* Select this item. */
Note
When selected using the Cursor Select key or a light pen, some display fields transmit accumulated message data automatically. Your application determines which fields cause such transmission.
Thus, it is possible that an STL program might be interrupted by a CURSRSEL statement. Select these fields using TRANSMIT USING CURSRSEL rather than CURSRSEL. The TRANSMIT USING CURSRSEL statement allows you to specify a WAIT condition, enabling you to control the execution of your STL program better.