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

ISPF panels and cursors


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

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Tue Jan 08, 2008 2:24 pm
Reply with quote

From an ISPF panel user can input values which are passed to the program. The program then executes a cursor with the values and returns the data (one or many rows).

Now I need to display the data in a tabular format in another ISPF panel. Can anybody suggest how can i get around this problem?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 08, 2008 2:33 pm
Reply with quote

Quote:
Can anybody suggest how can i get around this problem


Where is the problem??? icon_confused.gif

O.
Back to top
View user's profile Send private message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Tue Jan 08, 2008 2:38 pm
Reply with quote

1. Can I create an ISPF table and use it in the program to add value/rows to the table ? If yes would it be a permanent table?

2. Can I define a temp table and access it from subsequent ISPF panel?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 08, 2008 2:53 pm
Reply with quote

The answers:

1. Yes, you can create an ISPF table and use it in your REXX. You can populate it dynamically, and you can decide whether you want it to be a permanent or temporary table.

2. The is no 'table' concept in REXX (like in COBOL or NATURAL).

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Jan 08, 2008 9:43 pm
Reply with quote

1. That's very easy:
Do first TBCREATE
Then you have a loop of DB2 FETCH followed by a TBADD
Once the loop is over, do TBTOP
and display the table with TBDISPL
As you don't want to save the table, finish with TBEND

Keep the ISP Services Guide open...

2. The panel should have )MODEL line after the )BODY
That's also very easy.
Lots of info in ISPF Dialog Tag Language Guide and Reference
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 Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Is there a way to close VSAM files us... CICS 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top