We dynamically position a cursor through an application program using a symbolic name of the symbolic map by placing -1 into the field length field(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.
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!