View previous topic :: View next topic
|
Author |
Message |
biswadeepghosh
New User
Joined: 03 Jan 2008 Posts: 14 Location: Pune
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Quote: |
Can anybody suggest how can i get around this problem |
Where is the problem???
O. |
|
Back to top |
|
|
biswadeepghosh
New User
Joined: 03 Jan 2008 Posts: 14 Location: Pune
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|