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

Customer Information Control System. Middleware and MQ Series.
Post Reply
Vipin Verma
Registered Member
Posts: 16
Joined: Tue Aug 20, 2013 10:45 am
India

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

Post 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?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1889
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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).
Vipin Verma
Registered Member
Posts: 16
Joined: Tue Aug 20, 2013 10:45 am
India

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

Post 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?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

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

Post by nicc »

CURSLOC?
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1889
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

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

Post 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.
Vipin Verma
Registered Member
Posts: 16
Joined: Tue Aug 20, 2013 10:45 am
India

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

Post by Vipin Verma »

Thank you Robert.
Post Reply

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

Register

Sign in

Return to “CICS, Middleware and MQ Series.”