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
 

 

How to restrict the user to update the CICS Map screen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
maxsubrat

New User


Joined: 27 Feb 2008
Posts: 72
Location: india

PostPosted: Mon Feb 09, 2015 6:49 pm    Post subject: How to restrict the user to update the CICS Map screen
Reply with quote

I have a requirement to restrict few users to edit any field in the Map.
For ex: suppose Ram is the user and city type as Mumbai, I want to stop this user to edit any field from the map.

I have a main program which has many activities on it and also all the users can able to read and edit the MAP in all the fields.
My requirement is to stop the user to edit any field whose name is Ram from Mumbai without affecting other users.

Here I just want to know how to stop that user to edit the entire map or put entire map to Ram as read only.

Thanks in advance.
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Mon Feb 09, 2015 9:00 pm    Post subject: Reply to: How to restrict the user to update the CICS Map sc
Reply with quote

For each named field in the map you have an attribute character.
After receiving the map for the 1st time, you check the user and the city.
Depending on the values entered, you set the other fields attributes to protected or non-protected, then send the map.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Mon Feb 09, 2015 10:07 pm    Post subject:
Reply with quote

Please expand DFHBMSCA copybook in continuation with what Marso is suggesting.

http://www-01.ibm.com/support/knowledgecenter/?lang=en#!/SSGMGV_3.2.0/com.ibm.cics.ts.applicationprogramming.doc/topics/dfhp4_bmsconstants.html
Back to top
View user's profile Send private message
maxsubrat

New User


Joined: 27 Feb 2008
Posts: 72
Location: india

PostPosted: Mon Feb 09, 2015 10:08 pm    Post subject: Reply to: How to restrict the user to update the CICS Map sc
Reply with quote

You are saying to check all the fields one by one and put it as protected.
Instead of that I just want to protect all the fields in one go...
Is there any way to set like this?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Mon Feb 09, 2015 10:11 pm    Post subject:
Reply with quote

Yes, as soon as you get Ram as a user and City is Mumbai then use PROT attribute from the above copybook for all the Attribute fields which are editable and then send that map, are you not asking for this?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Tue Feb 10, 2015 4:21 am    Post subject:
Reply with quote

Each field on a CICS 3270 screen is defined separately. If you allow fields to be individually editable, then there is no way that you can protect every field -- unless you move the protect attribute to each and every field attribute. If you have 97 fields on the screen you want to protect, you can use 97 MOVE statements (assuming you are using COBOL) or you can use 1 MOVE statement with 97 destination variables -- but any way you look at it, you've got to specify every field attribute you want protected.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Tue Feb 10, 2015 7:46 pm    Post subject:
Reply with quote

Alternatively, the fields can be defined as protected by default.
Then if user is not Ram or if city is not Mumbai, you can UNPROT the fields.

Either way, there is no shortcut: each attribute of each field must be set.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IMS DC screen Access sivasaras IMS DB/DC 3 Fri Nov 18, 2016 6:38 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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