View previous topic :: View next topic
|
Author |
Message |
kappera.bindu
New User
Joined: 15 Feb 2008 Posts: 11 Location: bangalore
|
|
|
|
hi,
i have few questions regarding cics screens.
1,if i have 10 fields in the cics screen how can i find my cursor in the 6th field as soon as i enter into the screen?
2,which EIB field will tell that whether we are entering into the screen for the first time or not?if it is not
the EIB field what other will tell that?
please clarify. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
1. there is a format for setting a cursor position. ck the manual.
2. there is no eib field that will tell you this, you have to keep track of that yourself. most people use the dfhcommarea or a queue item to keep-track of processing performed for a user/terminal. |
|
Back to top |
|
|
star_dhruv2000
New User
Joined: 03 Nov 2006 Posts: 87 Location: Plymouth, MN USA
|
|
|
|
Hi,
You may use following to check CURSOR position:
Code: |
DIVIDE EIBCPOSN BY 80 GIVING WS-ROW REMAINDER IN WS-COL.
ADD 1 TO WS-ROW.
ADD 1 TO WS-COL. |
Now, WS-ROW contains the ROW number and WS-COL contains the Column number of the cursor. You can manipulate it as per your requirement.
80 is maximum column number of screen. You may change it in accordance to your screen size.
Generally people use EIBCALEN for checking whether its first time or not. It's value is 0 if first time. It represents the length of COMMAREA. Thus once you processing is complete move some data to commarea to change EIBCALEN.
Cheers! |
|
Back to top |
|
|
kappera.bindu
New User
Joined: 15 Feb 2008 Posts: 11 Location: bangalore
|
|
|
|
hi,
i need to modify the map code to have the cursor position in the 6th field as soon as i enter.
is there any way to do that?
answer for second question is fine.thank you. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
There is 'IC' parameter in the DFHMDF to serve your purpose. |
|
Back to top |
|
|
kappera.bindu
New User
Joined: 15 Feb 2008 Posts: 11 Location: bangalore
|
|
|
|
hi,
thanks for answer.
i got it now. |
|
Back to top |
|
|
|