Mcl
2500 pts. | Oct 15 2009 3:47PM GMT
In your question you state “My problem is restrict UPDDTA command for specific users”.
Are you trying to prevent them from using the command (which you can do using authorization to the command) or are you trying to restrict what the users can actually do with the command. For an UPDDTA, that would imply restricting the users from updating certain files, fields or maybe specific data content.
You can restrict authority on files which would prevent the specific users from changing those files - and it is probably not a bad idea to do that anyway.
If you are restricting how the command is used - you are probably better off writing an update program that provides specific editing capability.
UPDDTA is handy, but it is far too easy to enter invalid data with it. On our system, no users (usrcls = *USER) have access to it.
Regards
Mike
Splat
1050 pts. | Oct 16 2009 1:58AM GMT
You’d probably be better off securing the command with an authorisation list.
If you insist on changing the command, I’d recommend that you create a library for changed system objects & add it as the first entry of the system library list. Duplicate the command into this library, then change it - it makes it easy to return to the status quo ante & greatly reduces the chance of messing up a needed portion of the operating system.






