Interview Questions

How to establish dynamic cursor position on a map?

CICS Interview Questions


(Continued from previous question...)

How to establish dynamic cursor position on a map?

Q: How to establish dynamic cursor position on a map? How to get the cursor position when we receive a map?

AN: We dynamically position a cursor through an application program using a symbolic name of the symbolic map by placing -1 into the field length (i.e., fieldname + L) of the field where you wish to place the cursor. The SEND MAP command to be issued must have the CURSOR option (without value). Also, the mapset must be coded with MODE = INOUT in the DFHMSD macro. We get the cursor position when we receive a map by checking EIBCPOSN, which is a halfword ( S9(4) COMP) binary field in EIB, and contains offset position (relatively to zero) of the cursor on the screen.

(Continued on next question...)

Other Interview Questions