View previous topic :: View next topic
|
Author |
Message |
vtham
New User
Joined: 08 Aug 2007 Posts: 9 Location: Chennai
|
|
|
|
Hi All,
I have a new requirement to code horizontal scrolling (Forward & backward) using PF10 & PF11. Pls let me know any available logic for the same.
Note:
The same screen has PF7 & PF8 logic, for which i have used a TSQ.
Many thanks for your help |
|
Back to top |
|
|
GuyC
Senior Member
Joined: 11 Aug 2009 Posts: 1281 Location: Belgium
|
|
|
|
Horizontal scrolling is left/right not forward/backward.
Just retrieve more columns, and depending on a variable that increments, decrements with PF10/PF11 move different columns to screen and/or use different map. |
|
Back to top |
|
|
Jag
New User
Joined: 07 Dec 2005 Posts: 30 Location: India
|
|
|
|
In horizontal scrolling we need to know which data is being displayed when PF11 is pressed..
For ex...In vertical scrolloing when PF7/8 is pressed same Fields will be present so we use the same map with different data.
But for horizontal sroclling as the above firend said an example for viewing a all fields in a table in the screen..Then we need to use different maps which contains different and these things should be manupulated in the program... |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi,
Another suggestion from my part would be to consider the the row data as a single field (say 75 bytes) in the screen i.e. the map is not diffrentiated as different columns. If the total row length ( o/p structure size ) is greater than 80 just show the data accordingly.
I will try to explain with example. Say your output row has a structure like this :-
Code: |
05 WS-EMPL-ID PIC X(10)
05 FILLER PIC X(01)
05 WS-FIRST-NAME PIC X(20)
05 FILLER PIC X(01)
05 WS-MID-NAME PIC X(15)
05 FILLER PIC X(01)
05 WS-LAST-NAME PIC X(30)
05 FILLER PIC X(01)
05 WS-DESIGNATION PIC X(20)
05 FILLER PIC X(01)
05 WS-ADDRESS-1 PIC X(25)
05 FILLER PIC X(01)
05 WS-ADDRESS-2 PIC X(25)
05 FILLER PIC X(01)
05 WS-GRADUATION PIC X(30)
05 FILLER PIC X(01)
05 WS-BLOOD-GRP PIC X(10)
|
Your map will be defined with fields which are, say, length of 75 bytes in each line. When you issue a SEND MAP the first time show the ID and NAME fields. When PF11 is invoked show the DESIGNATION and ADDRESS fields.... so on...
Do let me know in case of any clarifications... |
|
Back to top |
|
|
|