Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Placing cursor in middle of text field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
anjumraza

New User


Joined: 21 Nov 2007
Posts: 17
Location: bangalore

PostPosted: Sat Dec 20, 2008 4:00 pm    Post subject: Placing cursor in middle of text field
Reply with quote

HI all,

Please help me with a query regarding placing the cursor on a screen.

As we know if we move -1 to fieldname+L then the cursor will be positioned to the starting of the field. No my question is, i have text field of length 75 characters on the screen and i want to place the cursor somewhere in between dynamically. I have calculated as where the cursor should be positioned but my question is how to move that number.

Just i tried to set the value of EIBCPOSN to the calculated value and quoted CURSOR also in SEND command, but it didnot work.

Can anyone please help me,

Thanks in advance,
Anjum Raza.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sat Dec 20, 2008 7:20 pm    Post subject:
Reply with quote

What's the variable definition you used for the CURSOR variable? What value did you give to the CURSOR variable? What's the SEND MAP command look like? I wouldn't use both EIBCPOSN and CURSOR -- just set the CURSOR variable.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Dec 20, 2008 11:14 pm    Post subject:
Reply with quote

anjumraza

if you read about EXEC CICS SEND MAP CURSOR
http://publib.boulder.ibm.com/infocenter/txformp/v6r0m0/index.jsp?topic=/com.ibm.cics.te.doc/erziai00105.htm


you will find the answer to your question.


Robert, please explain what you mean by varibale definition icon_question.gif
Back to top
View user's profile Send private message
anjumraza

New User


Joined: 21 Nov 2007
Posts: 17
Location: bangalore

PostPosted: Sun Dec 21, 2008 9:12 pm    Post subject: Reply to: Placing cursor in middle of text field
Reply with quote

Thanks Earl,

had gone thru the link you have provided, will try that tomorrow.

Robert,

The variable in the program that is passed to map is actually X(2500) but i will pass only 75 characters at a time. The cursor should be placed within these 75 chars but the cursor position is +429 on the map. But i didnot know about CURSOR(data-value) option as given in the link provided by Earl. Thanks for your advice,

Thank you members,
Anjum raza.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sun Dec 21, 2008 9:23 pm    Post subject:
Reply with quote

Quote:
the cursor position is +429 on the map
Remember that the CURSOR field is an offset -- relative to zero -- not a displacement relative to one. If your cursor shows up one byte past where you want it, you'll need to adjust it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us