View previous topic :: View next topic
|
Author |
Message |
princegaurav
New User
Joined: 08 Dec 2005 Posts: 9
|
|
|
|
)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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
princegaurav
New User
Joined: 08 Dec 2005 Posts: 9
|
|
|
|
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 |
|
|
princegaurav
New User
Joined: 08 Dec 2005 Posts: 9
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
did You remember to use also the REFRESH clause at the end of the reinit section |
|
Back to top |
|
|
|