ajsexport
- Organization of this page
Format
ajsexport -o package-file-name export-unit-name
Description
This command can be used for the packaging feature provided by JP1/AJS3. You can only use these commands in a batch file or shell script for the packaging function.
To back up ordinary units, use the ajsprint or ajsbackup command.
This command exports all units under several units into a single package file (you can import the package file using the ajsimport command).
If the AJSPRINTNETSCHPRF environment setting parameter specifies the dependency on the schedule for the upper-level jobnet, you can specify either of the following methods to output the unit definition information for the nested jobnet having a schedule rule:
-
Enable the schedule rule and do not depend on the schedule for the upper-level jobnet.
-
Delete the schedule rule and depend on the schedule for the upper-level jobnet.
For details about how to set the AJSPRINTNETSCHPRF environment setting parameter, see 2.2.2(79) AJSPRINTNETSCHPRF in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2.
Execution privileges
You must have any of the following JP1 privileges:
-
JP1_AJS_Admin privilege
-
JP1_AJS_Manager privilege
-
JP1_AJS_Editor privilege
-
JP1_AJS_Operator privilege
-
JP1_AJS_Guest privilege
Arguments
-o package-file-name
Specify the name of the file in which you want to package units.
You can specify a character string of 1 to 255 bytes.
export-unit-name
Specify the units you want to package, in the following format:
- Format
scheduler-service-name:/unit-full-name
- Specification method
-
You can specify a character string of 1 to 930 bytes.
You can specify wildcard characters only for the full last element name of the unit name.
- Notes on specification
-
You cannot export the root job group (/).
Notes
-
Either of the following users can export a unit:
-
A user granted the reference privilege for the unit to be exported
-
A JP1 user mapped to the OS user who has Administrators or superuser privileges
Note, however, that if yes is set after changing the ADMACLIMIT environment setting parameter from its default, even a JP1 user who was mapped to an OS user with Administrators or superuser privileges must have the reference privilege.
-
-
If you export more than one unit definition having the same unit name, specify a separate package file for each unit definition.
-
If the command is executed for a release target jobnet (root jobnet for which release entry is made), the jobnet definitions in Being applied status are exported. However, the exported unit definition information does not include release information.
Return values
0 |
Normal end |
Multiple of 4 within the range from 4 to 124 |
Abnormal end |