GDDM V3R2 Base Application Programming Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Positioning the cursor dynamically

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



Your program can position the cursor dynamically using cursor adjuncts, possibly in conjunction with the MSCPOS call. If the program specifies more than one dynamic position, GDDM ignores all except the latest.

You use the cursor adjuncts by setting one of them to a 1 character and the others to blank before executing an MSPUT. This causes the cursor to be placed under the first character of the field with the 1 character in its cursor adjunct.

To position the cursor under a character other than the first one in a field, you can execute an MSCPOS call before the MSPUT. An example is:


     CALL MSCPOS(10);

which would put it under the tenth character.

The MSCPOS call is put into effect at the next MSPUT. After that it has no effect, and you must call MSCPOS again if you want to control the position at any later MSPUT.

MSCPOS can only affect a field with a cursor adjunct character of 1. It has no effect if you have not defined a cursor adjunct for the field using GDDM-IMD or if the cursor adjunct for that field has been set to blank.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012