Appendix D. Preventing users from running Query for iSeries
queries interactively
The system administrator can restrict users from running queries interactively. When this restriction is
applied, users cannot:
v
Use option 9 (Run) on the Work With Queries display.
v
Press F5 (Report) to display the report on-screen.
v
Use option 1 (Run interactively) on the Exit this Query display.
v
Run the QRYRUN procedure interactively.
v
Run the Run Query (RUNQRY) command interactively.
If a user attempts to run a query interactively, and is restricted from doing so, an error message appears.
A user
cannot
run a query interactively when:
v
The authority for the RUNQRY command is changed so the user is no longer authorized to it. This may
affect the ability of the user to run in batch (see note below on allowing one or more users to have
different run capabilities).
v
The RUNQRY command is changed to no longer support being run interactively.
To prevent a user from running a query interactively:
v
Use the Change Command (CHGCMD) command to remove *INTERACT from the ALLOW (where
allowed to run) parameter. ALLOW(*PGM) is not allowed in RUNQRY.
v
Change the authority for the RUNQRY command to state which users have authority to this command.
Note:
To allow one or more users to have different run capabilities than what is specified for the
RUNQRY command in QSYS:
1. Create a duplicate object of the RUNQRY command and place it in a library other than
QSYS.
2. Make the needed changes to restrict the use of the RUNQRY command in QSYS.
3. Place the library containing the new RUNQRY command, that is, the version that allows
users to run interactively, ahead of QSYS in the library list of the users who need to run
queries interactively.
Note:
If you add a new release of the operating system, you may need to redefine the RUNQRY
command parameters.
© Copyright IBM Corp. 2000, 2002
243
Summary of Contents for ISERIES SC41-5210-04
Page 1: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Page 2: ......
Page 3: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Page 12: ...x Query for iSeries Use V5R2 ...
Page 14: ...2 Query for iSeries Use V5R2 ...
Page 32: ...20 Query for iSeries Use V5R2 ...
Page 38: ...26 Query for iSeries Use V5R2 ...
Page 44: ...32 Query for iSeries Use V5R2 ...
Page 116: ...104 Query for iSeries Use V5R2 ...
Page 122: ...110 Query for iSeries Use V5R2 ...
Page 146: ...134 Query for iSeries Use V5R2 ...
Page 150: ...138 Query for iSeries Use V5R2 ...
Page 174: ...162 Query for iSeries Use V5R2 ...
Page 178: ...166 Query for iSeries Use V5R2 ...
Page 196: ...184 Query for iSeries Use V5R2 ...
Page 198: ...186 Query for iSeries Use V5R2 ...
Page 204: ...192 Query for iSeries Use V5R2 ...
Page 205: ...Part 4 Appendixes Copyright IBM Corp 2000 2002 193 ...
Page 206: ...194 Query for iSeries Use V5R2 ...
Page 210: ...198 Query for iSeries Use V5R2 ...
Page 242: ...230 Query for iSeries Use V5R2 ...
Page 256: ...244 Query for iSeries Use V5R2 ...
Page 270: ...258 Query for iSeries Use V5R2 ...
Page 272: ...260 Query for iSeries Use V5R2 ...
Page 292: ...280 Query for iSeries Use V5R2 ...
Page 293: ......
Page 294: ... Printed in U S A SC41 5210 04 ...