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
 

 

ISPF panels and cursors

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: ISPF panels and cursors
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: 2360
Location: Israel

PostPosted: Tue Jan 08, 2008 2:33 pm    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Jan 08, 2008 2:53 pm    Post subject:
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: 1224
Location: Israel

PostPosted: Tue Jan 08, 2008 9:43 pm    Post subject:
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    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 ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm
No new posts More ISPF RFE's to vote for prino TSO/ISPF 1 Tue Apr 19, 2016 12:06 am


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