ajssetup
- Organization of this page
Format
ajssetup [-F service-name] [-t|[-m]] [-mh logical-host-name]
Description
- If the database is in the standard configuration:
-
The ajssetup command sets up the suspend function.
- If the database is in the compatible ISAM configuration:
-
The ajssetup command does the following:
-
Sets up the ISAM database used by a scheduler service.
-
Set up the suspend function.
-
Execution privileges
In Windows: Administrators privileges
In UNIX: Superuser privileges
Arguments
-F service-name
Specify the service name of the scheduler service to be processed.
You can specify a name of 1 to 30 characters (bytes).
If you omit this option, the system assumes the default scheduler service name.
-t
Specify this option to set up the ISAM database to be used by the scheduler service in a compatible ISAM configuration.
-m
Enables the suspend function.
Specify this option when you change the definition during the registration of a jobnet for execution. Immediately after installation, the suspend function is disabled.
When the suspend function is set up, the database used by the scheduler service is not set up. When a compatible ISAM configuration is used, set up the database to be used by the scheduler service before you set up the suspend function.
-mh logical-host-name
You can specify a logical host name instead of environment variable JP1_HOSTNAME. Specifying this option causes the host name specified in this option to precede that specified in environment variable JP1_HOSTNAME.
Specifying JP1_DEFAULT in this option also enables you to specify a physical host explicitly. Specifying the machine name of a physical host does not make it possible to set up a the physical host.
Notes
-
If you specify the -m option to enable the suspend function, you do not have to stop the JP1/AJS3 service and the scheduler service. The setting is immediately enabled. However, you can operate from JP1/AJS3 - View only after you log in after the suspend function is enabled.
-
If you specify the -t option to set up the database to be used by the scheduler service, perform the following before you execute the command:
In Windows, stop the JP1/AJS3 service.
In UNIX, stop the JP1/AJS3 service and then execute the ajsshmdel command.
-
You cannot execute more than one ajssetup command at any one time. To specify several ajssetup commands, set up the specification such that they are executed one by one.
-
If an error occurs as a result of executing the ajssetup command with the -t option specified, first correct the cause of the error and then delete all the tables that have been created. Then, re-execute the command to create the tables.
Likewise, to recreate a table after creating tables with the -t option, also delete all these tables. Then, re-execute the command to create tables.
Return values
0 |
Normal end |
Multiple of 4 from 4 to 124 |
Abnormal end |
Example
The following ajssetup command creates the table that is used by the scheduler service (service1).
ajssetup -F service1