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

Protect field in an ISPF Panel


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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 16, 2007 1:39 pm
Reply with quote

Reposted on request of OP - original somehow deleted


Hi everybody:

How can I protect a field programmatic in REXX ?

The field I want to protect is in a Panel,
for example I have an Employee-ID field defined as INPUT not protected,
to type the employee-id the first time, then in my rexx program
I want to change the attibutes of this field to "PROTECTED", so that
the user will not able to enter data in this field, the second time
that I will show the panel.

Is it possible?

Panel example :

Code:

)ATTR
  % TYPE(TEXT) INTENS(HIGH) SKIP(ON)
  + TYPE(TEXT) INTENS(LOW) SKIP(ON)
  _ TYPE(INPUT) INTENS(HIGH) CAPS(ON)
)BODY
%                 PANEL EXAMPLE       
+
+
+ EMPLYEE ID. : _Z       +   (ALPHANUMERIC)
+
+ FIRST NAME  : _Z                        +
.
. others fields
.
.



Any ideas how to protect programmatic a field (EMPLYEE ID) from REXX is welcome.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 16, 2007 6:11 pm
Reply with quote

In the past I have used a clone of the original panel which when the user hits enter control is returned to the REXX and then the cloned panel is displayed with the appropriate attributes defined.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Nov 16, 2007 6:41 pm
Reply with quote

play around a little with the

Code:
)INIT
....
)REINIT 
...


inserting something like ( panel driven... might choke )
Code:
if ( &field ^= '' )
   .ATTR(FIELD)='TYPE(OUTPUT) .....'


or rather (rexx driven will allways work)
Code:
.ATTR(FIELD)=&attrfield


were attrfield is a variable which has to be set before displaying the panel
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top