Authority needed for defining commands

When creating a command, you need certain authorities to programs and libraries.

For users to use a command you create, they must have operational authority to the command and data authority to the command processing program and optional validity checking program. They also must have read authority to the library that contains the command, to the command processing program, and to the validity checking program. If the command processing program or the validity checking program refers to any service programs, the user must have execute authority to the service programs and to the service program libraries. The user must have execute authority to the programs that are listed below.

The user must also have the correct authority to any other commands run in the command processing programs. The user must also have authority to the files to open them.