Page 1 of 1

Place the cursor on screen at a particular position on CICS map.

Posted: Mon Apr 30, 2018 12:18 pm
by Vipin Verma
Hi,

I have been asked that , ''How would you place the cursor on screen at a particular position on CICS map"? My answer was that we can MOVE "-1" to the length attribute of the field. But interviewer said there are more ways of doing it, tell me all. Which I could not list.

Could anyone please tell me other ways of doing it?

Re: Place the cursor on screen at a particular position on CICS map.

Posted: Mon Apr 30, 2018 5:01 pm
by Robert Sample
Another way would be to set the cursor position in the map -- BMS has an option to let you do so.

https://www.ibm.com/support/knowledgece ... tning.html lists three different ways to position the cursor (-1 to length, ATTRIB=IC on the BMS map, CURSOR in the EXEC CICS SEND command).

Re: Place the cursor on screen at a particular position on CICS map.

Posted: Tue May 01, 2018 9:35 am
by Vipin Verma
Thank Robert. I was searching more answers for it and I got this answer also:

While send map use: CURSOR (N)

Which is listed in the link you shared too: CURSOR(44). But how do we get the position number?

Re: Place the cursor on screen at a particular position on CICS map.

Posted: Tue May 01, 2018 4:02 pm
by nicc
CURSLOC?

Re: Place the cursor on screen at a particular position on CICS map.

Posted: Tue May 01, 2018 5:06 pm
by Robert Sample
Which is listed in the link you shared too: CURSOR(44). But how do we get the position number?
If you know the screen size, arithmetic will give you the position number. The top left screen character is 0. If the screen size is 43x80, the last character on the first line will be 79 and the first character on the second line will be 80. So (line number minus 1) times 80 plus line offset will give you the position. If you're using 132 characters per line, you'll change the multiplication factor to 132 instead of 80 ... etc.

Re: Place the cursor on screen at a particular position on CICS map.

Posted: Sat May 05, 2018 8:42 pm
by Vipin Verma
Thank you Robert.