Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


11.4.1 Details of errors (Windows)

The messages issued by JP1/Advanced Shell might contain information about the C run-time function and Win32(R) API errors.

The table below lists and describes the causes of typical C run-time function errors that are most likely to occur in a JP1/Advanced Shell environment (Windows) and the actions to be taken. For information about other errors that are not listed in the table and Win32 API errors, see the documentation for the Windows being used.

Table 11‒5: Causes of and actions in response to C run-time function errors (Windows)

Mnemonic

Error details

Cause

Action

ENOENT

No such file or directory

A file or directory cannot be found.

Check if the file exists.

EIO

Input/Output error

An input/output error occurred.

Take appropriate action according to the Windows or hardware information.

ENXIO

No such device or address

There is no access permission for the file.

Check if there is such a device or that the device is enabled. If the device is disabled, enable it. For other causes, check the documentation for the Windows being used.

E2BIG

Arg list too long

There is a shortage of area for the processing program's arguments or environment variables.

Check the processing program's arguments.

Check and, if necessary, revise the environment variables specified in parameters such as export and the usage of extended script commands in the file management function, and then delete any unneeded environment variable settings.

EAGAIN

Resource temporarily unavailable

There are too many processes, or a temporary memory shortage has occurred.

If the error recurs when the command is re-executed, terminate unneeded processes.

ENOMEM

Not enough space

Possible causes are as follows:

  • A new process cannot be created due to a shortage of swap area or virtual memory.

  • There are too many processes, or some processes are using too much memory.

Take the following actions:

  • If there is a shortage of swap area or virtual memory, expand it. If the swap area or virtual memory cannot be expanded, terminate unneeded processes.

  • If some processes are using too much memory, evaluate whether they can be terminated.

EACCES

Permission denied

Possible causes are as follows:

  • The access permission is invalid.

  • A file must be specified in an argument of a JP1/Advanced Shell command, but a directory was specified.

Take the following actions:

  • Check if the file access permission is correct.

  • Check the argument of the JP1/Advanced Shell command to determine whether a directory is specified instead of a file.

  • If you specified the CHILDJOB_SHEBANG parameter, check the specified parameter value and #! executable-program-path at the beginning of the file whose execution was attempted.

EFAULT

Bad address

An attempt was made to write data into an inaccessible area. The disk to which the data is to be written might have been disconnected.

If disks are being switched during system switchover, ignore this error message because there is no problem.

If you disconnected the disk by mistake, restore the corresponding file from its backup or initialize the file first before using it.

If neither of the above applies, contact the system administrator.

EEXIST

File exists

An attempt was made to create a file, but the file already exists.

Rename the file and re-execute the command. If the existing file is not needed, delete it and re-execute the command.

EINVAL

Invalid argument

An error was detected in memory management information.

Contact the system administrator.

ENFILE

Too many open files in system

The number of open files exceeded the maximum.

Check the total number of files in use in the system and close unneeded files.

EMFILE

Too many open files

Too many files are open in the corresponding process.

Contact the system administrator.

EFBIG

File too large

The file size exceeded the system limit.

Check and, if necessary, revise the size of a file to be used.

ENOSPC

No space left on device

There is not enough free space in the file system.

Allocate more free space.