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

Changing screen variables in ISPF


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

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Tue Mar 31, 2009 4:10 pm
Reply with quote

I want to change the value of the screen variable that gets displayed in the panel from ISPF PANEL PROC section. Is there a way to do it?

E.g) Instead of using ISPF Message if i try to display my message in the screen area though a screen variable by changing its value in my ISPF PROC section, it is not getting displayed. The value that is passed from INIT section is retained. How can i change the screen text from Panel PROC section?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Mar 31, 2009 4:30 pm
Reply with quote

The PROC section is invoked when the user hits the ENTER key. This means that if you want to see your changes, you have to put your DISPLAY PANEL statement within a loop.

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

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Wed Apr 01, 2009 10:38 am
Reply with quote

I have to loop the display statement with in my REXX code where i call my panel if i want to get my variable values updated. I cannot do this inside the ISPF panels. Correct my understanding if it is wrong.

PS: I tried displaying the panel at the end of PROC section. I am getting error.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Apr 01, 2009 10:43 am
Reply with quote

The only method to "display" a panel from within another panel is through selection panel (aka "menu").

If you want to see updated values (after PROC processing), you will have to invoke the DISPLAY service again.

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

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Wed Apr 01, 2009 10:46 am
Reply with quote

In my case I am displaying the panel from REXX. So i will loop the display panel in REXX to meet my requirement.

Many thanks for clarifying by doubts.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Apr 01, 2009 10:50 am
Reply with quote

By the way, you can use CONTROL DISPLAY LOCK to display the panel twice and process the PROC section, without the user noticing it.

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

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Wed Apr 01, 2009 11:45 am
Reply with quote

I tried using this option. The PROC section gets called before user entering the values for the input fields. Can i say when we use "CONTROL DISPLAY LOCK" the proc section gets called before getting the input from the user?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Apr 01, 2009 11:47 am
Reply with quote

Yes. CONTROL DISPLAY LOCK simply locks the user's keyboard, but ISPF panel processing performs as usual.

O.
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 changing defaults in db2 admin - Unlo... DB2 0
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
Search our Forums:

Back to Top