Job Management Partner 1/Automatic Job Management System 3 Command Reference 1
Format
ajsexport
-o package-file-name
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 Setting up the scheduler service environment 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.
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
- 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
Copyright (C) 2009, 2010, Hitachi, Ltd.
Copyright (C) 2009, 2010, Hitachi Solutions, Ltd.