Version 4.2.6 for Mainframes
 —  Parameter Reference  —

USER - Restrict Use of Profile Parameter Strings and Modules

This Natural profile parameter can be used to restrict the use of dynamic parameter strings as specified in a SYSPARM profile, NTSYS macro or parameter dataset (CMPRMIN) or to restrict an alternative parameter module (NATPARM).

Possible settings list of user IDs The IDs of the users who will be allowed to use the subsequently specified string of profile parameters. Only the specified users will then be allowed to use that parameter string.
Default setting none  
Dynamic specification yes

This parameter can only be specified dynamically. To restrict the use of an alternative parameter module (NATPARM), the corresponding macro NTUSER must be used instead.

Specification within session no  

The USER parameter applies only to the string of dynamic parameters specified after it. The NTUSER macro applies to the parameter module in which it is specified. The default Natural parameter module linked to the environment-dependent Natural nucleus cannot be restricted.

When the dynamic profile parameters are evaluated and the USER parameter is encountered, Natural checks if the current user ID (that is, the current setting of the system variable *INIT-USER) is contained in the list of user IDs specified with the USER parameter. If it is not, the user receives a corresponding error message, and the processing of dynamic profile parameters is terminated immediately.

When an alternative parameter module is to be used, Natural loads the alternative parameter module specified by the PARM parameter and checks if the current user ID (that is, the current setting of the system variable *INIT-USER) is contained in the list of user IDs specified by the NTUSER macro in the alternative parameter module. If it is not, the user receives a corresponding error message, and the alternative parameter module is discarded.

To restrict the use of:

The following topics are covered below:


USER Parameter Syntax

The parameter syntax of USER is as follows:

USER=(user-id1,user-id2,...)

Top of page

NTUSER Macro Syntax

The NTUSER macro is specified in a Natural parameter module as follows:

NTUSER user-id1,user-id2,user-id3,...
NTUSER user-id4,user-id5,...
...

Top of page

Example of NTUSER Macro

The following is an example of protecting a Natural parameter macro:

NTPRM ...
...
NTUSER ADMIN1,ADMIN2

Top of page

Example of USER Parameter

USER=(ADMIN1,ADMIN2),FNAT=(12,177,SECPASSW,74832055)

Top of page