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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm


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