Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start Agent Services (STRAGTSRV) command starts all of the agent services on this system that are defined in a preferences file. Another preferences file is also used to help define how the services are started. The preferences files are stream files named ableplatform.preferences and able.preferences that are located in the directory specified for the Preferences file directory (PREFDIR) parameter.
You can use the End Agent Services (ENDAGTSRV) command to end the agent services started by this command.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
PREFDIR | Preferences file directory | Path name, *DFT | Optional |
HOMEDIR | Home directory | Path name, *CURRENT | Optional |
CLASSPATH | Additional classpath | Path name, *NONE | Optional |
SBMJOBUSER | User profile for SBMJOB | Single values: *CURRENT Other values (up to 10 repetitions): Element list |
Optional |
Element 1: Pool identifier | Character value | ||
Element 2: User profile | Name |
Top |
Specifies the directory that contains the preferences files that define the agent services to be started and how they are started. The preferences files must be named ableplatform.preferences and able.preferences.
Top |
Specifies the directory to be used as the home directory of the agent services.
Top |
Specifies the additional classpath to be appended to the classpath setting of each Java Virtual Machine (JVM) to be started to run the agent services.
Top |
Specifies the user profile to be used for the Java Virtual Machine (JVM) jobs that will run the agent services. You can specify that a particular JVM run under a different profile than the current user profile of the job running the STRAGTSRV command.
You can specify an alternate user profile for up to 10 JVM jobs.
Single values
Element 1: Pool identifier
Element 2: User profile
Top |
Example 1: Starting with Shipped Default Values
STRAGTSRV
This command starts all of the agent services defined in the default ableplatform.preferences file in '/qibm/prodData/OS400/able/' in a way defined in the default able.preferences file in '/qibm/prodData/OS400/able/'. The home directory of each agent service will be set to the Home Directory of the current user. All jobs submitted to run the Java Virtual Machines will run under the current profile.
Example 2: Starting with User-Specified Values
STRAGTSRV PREFDIR('/qibm/userData/OS400/able/test/') HOMEDIR('/qibm/userData/OS400/able/test/') CLASSPATH('/qibm/userData/OS400/able/test/test.jar') SBMJOBUSER((POOL1 TESTPROF1) (POOL3 TESTPROF3))
This command starts all of the agent services defined in the ableplatform.preferences file in '/qibm/userData/OS400/able/test/' in a way defined in the default able.preferences file in '/qibm/userData/OS400/able/test/'. The home directory of each agent service will be set to '/qibm/userData/OS400/able/test/'. The Java Virtual Machines will have thier classpaths set to include the test.jar Java Archive file in '/qibm/userData/OS400/able/test/'. The jobs submitted to run the Java Virtual Machines for POOL1 and POOL3 will run under the users TESTPROF1 and TESTPROF3 respectivley, all other JVMs will run under the current user profile.
Top |
*ESCAPE Messages
Error messages from submitted job:
This command submits a batch job which, in turn, submits additional batch jobs where the agent services will run. The following error messages could be signaled from this batch job:
Top |