Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Panel displays last row as soon as table is displayed.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Panel displays last row as soon as table is displayed.
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 19, 2010 12:39 pm    Post subject:
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    Post subject: Reply to: Panel displays last row as soon as table is displa
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 19, 2010 1:03 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 19, 2010 1:53 pm    Post subject:
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    Post subject: Reply to: Panel displays last row as soon as table is displa
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: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 19, 2010 2:59 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts SCLM -- not installed -- panel ISRNOSLM dmitchell1105 IBM Tools 3 Fri Jun 09, 2017 10:41 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us