Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Command Reference


ajsimport

Organization of this page

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:

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

Return values

0

Normal end

Multiple of 4 within the range from 4 to 124

Abnormal end