Place the cursor on screen at a particular position on CICS map.
-
- Registered Member
- Posts: 16
- Joined: Tue Aug 20, 2013 10:45 am
Place the cursor on screen at a particular position on CICS map.
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?
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?
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Place the cursor on screen at a particular position on CICS map.
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).
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).
-
- Registered Member
- Posts: 16
- Joined: Tue Aug 20, 2013 10:45 am
Re: Place the cursor on screen at a particular position on CICS map.
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?
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?
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Place the cursor on screen at a particular position on CICS map.
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.Which is listed in the link you shared too: CURSOR(44). But how do we get the position number?
-
- Registered Member
- Posts: 16
- Joined: Tue Aug 20, 2013 10:45 am
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute