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
 

 

)REINIT section in PANEL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
princegaurav

New User


Joined: 08 Dec 2005
Posts: 9

PostPosted: Thu Aug 23, 2012 8:52 pm    Post subject: )REINIT section in PANEL
Reply with quote

)REINIT section in ISPF Panels is used to initialize or process something when Panel is re-initialized.

I have tried various things/methods to understand what is Panel Re-initialization, but have failed to get the concept

Can anyone please explain, what is meant by Panel Re-initialization and how can I get a Panel to re-initialize?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu Aug 23, 2012 9:00 pm    Post subject: Reply to: )REINIT section in PANEL
Reply with quote

the manual explanation seems clear to me ..
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ispzdg70/7.1.17?ACTION=MATCHES&REQUEST=reinit&TYPE=FUZZY&SHELF=ISPZPM70.bks&DT=20080715202837&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

the redisplay is something that happens behind the scenes ...

for example when verifying a field and issuing a message
VER (&somefield,NB,MSG=NB001)
then ISPF will redisplay the panel with the error mesage without any action on Your side
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Thu Aug 23, 2012 9:04 pm    Post subject: Re: )REINIT section in PANEL
Reply with quote

princegaurav wrote:
)REINIT section in ISPF Panels is used to initialize or process something when Panel is re-initialized.

I have tried various things/methods to understand what is Panel Re-initialization, but have failed to get the concept

Can anyone please explain, what is meant by Panel Re-initialization and how can I get a Panel to re-initialize?

As the fine manual says:
Quote:
Panel redisplay occurs in either of these situations:

  • Redisplay occurs automatically after the )PROC section has been processed if the .MSG control variable is nonblank and the user has not requested END or RETURN. The .MSG control variable is set automatically if a translation or verification error occurs. It can also be set explicitly by use of an assignment statement in the )PROC section.
  • Redisplay occurs if a dialog function invokes the DISPLAY or TBDISPL service with no panel name specified (a blank).

Note:
See z/OS ISPF Services Guide under the description of TBDISPL for a explanation of how redisplay processing for the TBDISPL service differs from that for the DISPLAY service described here.
Back to top
View user's profile Send private message
princegaurav

New User


Joined: 08 Dec 2005
Posts: 9

PostPosted: Thu Aug 23, 2012 9:12 pm    Post subject: Reply to: )REINIT section in PANEL
Reply with quote

Thank you very much for your replies.
Even I thought that if an error message is produced by VER function, the Panel gets re-initialized.

But today I tried the following code:

)REINIT
&SDIT = 'REINIT'

SDIT is an Panel field with OUTPUT attribute.

I provided an invalid value in an Input field and as expected an error message was produced, but the value of SDIT did not change on panel.

Did I miss anything? Why was changed value of the variable not reflected on Panel?
Has REFRESH command got something to do with this ?
Back to top
View user's profile Send private message
princegaurav

New User


Joined: 08 Dec 2005
Posts: 9

PostPosted: Thu Aug 23, 2012 9:21 pm    Post subject: Reply to: )REINIT section in PANEL
Reply with quote

Yes, I think it the the REFRESH statement that I missed.
If I would have used

REFRESH(*)

I would probably have seen the updated value.

Thank you very much again for your help guys.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu Aug 23, 2012 9:26 pm    Post subject: Reply to: )REINIT section in PANEL
Reply with quote

did You remember to use also the REFRESH clause at the end of the reinit section
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 Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Rexx Panel Validation ajithajt CLIST & REXX 6 Sun Jul 17, 2016 10:50 pm
This topic is locked: you cannot edit posts or make replies. Providing inputs to a panel of anothe... Raghur CLIST & REXX 2 Tue Apr 05, 2016 12:01 pm
No new posts Rexx Panel Navigation Akshay Yadav TSO/ISPF 5 Wed Feb 17, 2016 11:50 am


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