Previous Topic: URL Statement—Specify the URL of the JMX ServerNext Topic: USER_TYPE Statement—Specify the Oracle Database User Type


USER Statement—Specify a User ID

The USER statement specifies the user ID the agent job runs under.

Supported Job Types

This statement is required for the following job types:

This statement is optional for the following job types:

Syntax

This statement has the following format for HP Integrity NonStop jobs:

USER group.user_ID

This statement has the following format for Windows and File Trigger jobs that monitor or access files on remote Windows systems:

USER domain\user_ID

This statement has the following format for all other job types that it applies to:

USER user_ID
group

Specifies the group that the user ID is in.

Limits: Maximum of 8 characters, case-sensitive; cannot contain delimiters (such as spaces)

domain

Specifies the domain that the user ID is in.

user_ID

Specifies the user ID to use when running the job.

Limits for HP Integrity NonStop jobs: Maximum of 8 characters, case-sensitive; cannot contain delimiters (such as spaces).

Limits for i5/OS jobs: Maximum of 10 characters, case-sensitive; cannot contain delimiters (such as spaces).

Limits for all other job types that USER applies to: Up to 128 characters; case-sensitive; cannot contain delimiters (such as spaces).

Notes:

UNIX Jobs:

Windows Jobs:

i5/OS Jobs:

Database Trigger Jobs:

Example: Specify a User ID in a Windows Job

This example runs sort.exe on the NT401 system under the user1 user ID:

AGENT NT401
USER user1
CMDNAME c:\payroll\sort.exe

Example: Specify a User ID on a Remote Windows Computer

This example runs calc.exe on the CYBNT server. CYBUSER is a user ID in the CYBDOM domain. CYBUSER is defined on the scheduling manager and has access permission to the public folder.

AGENT NT30
CMDNAME \\CYBNT\public\calc.exe
USER CYBDOM\CYBUSER

Example: Specify a User ID in a UNIX Job

This example runs the test1.ksh script on the UNIX_LA system under the user1 user ID:

AGENT UNIX_LA
SCIPTNAME /mfg/test1.ksh
USER user1

Example: Specify a User ID in an i5/OS Job

This example runs the MFGPROG program on the AS401 system under the user1 user ID:

AGENT AS401
CLPNAME MFGPROG
USER user1

Example: Specify a User ID in an HP Integrity NonStop Job

This example runs a command on an HP Integrity NonStop system under user ID "glsys", which is part of the "prod" group:

AGENT PROAGENT                            
COMMAND $C35.PROD.GETDEF
USER prod.glsys