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

Panel displays last row as soon as table is displayed.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Fri Feb 19, 2010 10:46 am
Reply with quote

Hi,

I am displaying table data on the panel. Panel displays last rows and then I need to do "Page up" to see all rows in ascending order.

Is their any command which displays from first row by default whenever I display panel with TBDISPL service.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 19, 2010 12:39 pm
Reply with quote

TBTOP perhaps

Does exactly what it says it does in the manual.
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Fri Feb 19, 2010 12:46 pm
Reply with quote

Hi Expat,

I have coded TBTOP statement just after TBOPEN.
Code:
"ISPEXEC TBOPEN CDTAB1"
"ISPEXEC TBTOP CDTAB1" 

and after TBTOP, TBDISPL is coded.
But still it is not working icon_sad.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 19, 2010 1:03 pm
Reply with quote

How very strange. I can not recall ever having a problem with TBTOP.

Will try to have a play later if I get time
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 19, 2010 1:53 pm
Reply with quote

Have you ran the REXX with TRACE to see what happens ?
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Fri Feb 19, 2010 2:53 pm
Reply with quote

Hi Expat,

I retested my code and found that I was following incorrect order which was - TBOPEN, TBTOP,TBADD, TBDISPL, TBCLOSE
But the correct order is TBOPEN, TBADD, TBTOP, TBDISPL, TBCLOSE
It is working fine for me.

Thanks Expat for help icon_biggrin.gif

But another query:
How can we check whether the table is open or not?

Please help.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 19, 2010 2:59 pm
Reply with quote

Thanks for letting us know the solution. C2KI error icon_lol.gif

TBQUERY will give a return code 12 if the table is not open.

Please look at the ISPF Services Guide manual to find these things out for yourself.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top