IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Placing cursor in middle of text field


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Dec 20, 2008 7:20 pm
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
Reply with quote

anjumraza

if you read about EXEC CICS SEND MAP CURSOR
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Dec 21, 2008 9:23 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts TEXT-TO-PDF Compuware & Other Tools 1
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
Search our Forums:

Back to Top