David Day wrote:
Looks like the question should have been worded differently. What is
happening is that iteratively executing TBSKIP after TBDISPL will start
at row 0 and move the CRP to whatever row is set on the call to TBSKIP.
But an intervening call to TBDISPL will cause TBSKIP to start over at
CRP 0, even though the top line displayed on the previous TBDISP is the
row last returned from TBSKIP.
TBDISPL the top of the table.
TBSKIP +1(do this as many times as needed to find the row the logic
wants to display)
TBDISPL and the display shows the row with the data from the last TBSKIP
as the 1st row in the display
TBSKIP +1 returns the 2nd row of the table, not the row subsequent to
the last one returned on the previous TBSKIP, and the one that was the
top row of the display on TBDISPL
You do realize that TBDISPL is designed to display multiple rows at
a time? And if the user scrolls up or down, TBDISPL will automatically
do the scrolling and not even return to the driving dialog? If you
just want to display the contents of a single row, then use DISPLAY
with a PANEL that displays the current row's values; after a TBSKIP,
do the DISPLAY again, etc.
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html