Job Management Partner 1/Automatic Job Management System 3 Command Reference 1
Format
ajsimport
[-f]
[-S]
-i package-file-name
[import-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 restore ordinary units, use the ajsdefine or ajsrestore command.
Imports a package file you created with the ajsexport command.
Execution privileges
You must have any of the following JP1 privileges:
- JP1_AJS_Admin privilege
- JP1_AJS_Manager privilege
- JP1_AJS_Editor privilege
Arguments
-f
Forcibly updates the unit if the import destination contains a unit having the same name as the one you import.
If you omit this option, importing a unit to a destination containing an element having the same name will result in an error. The system does not update information.
-S
This option makes it possible to specify the particular jobnet name as the import unit name, even for suspended jobnets that have been registered for execution. Even for suspended jobnets, however, you cannot update definitions in the following situations:
- While the definition of the root jobnet is being updated
- While the definitions of job groups containing the definition of the root jobnet are being updated
- While jobnets are being executed
-i package-file-name
Specify the name of the package file you want to import.
You can specify a character string of 1 to 255 bytes.
import-unit-name
Specify the units you want to import, in the following format:
- Format
scheduler-service-name:/unit-full-name
- Specification method
- You can specify an arbitrary name for the import unit.
By default, the name specified in Export unit name in the ajsexport command is used for the import process.
- You can specify a character string of 1 to 930 bytes.
- Notes on specification
- You cannot use wildcard characters here.
Notes
- When importing a jobnet registered for execution (other than remote jobnets), you must put the jobnet at the import destination into a suspended state before specifying the -S option in this command.
- This command terminates abnormally if the jobnet specified in the import unit name is undergoing a suspended-stage change.
- You cannot import a planning group into a jobnet.
- You cannot import any unit other than a jobnet or remote jobnet into a planning group.
- You cannot update information about a root jobnet registered for execution or information about any job group or planning group containing that root jobnet.
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.