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

)REINIT section in PANEL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Aug 23, 2012 9:00 pm
Reply with quote

the manual explanation seems clear to me ..
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: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 23, 2012 9:04 pm
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Aug 23, 2012 9:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Call program, directly from panel CLIST & REXX 9
No new posts FD Section to Create FB or Vb File Dy... COBOL Programming 1
Search our Forums:

Back to Top