Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Job Management System 3 - Definition Assistant Description, Operator's Guide and Reference


ajsdaconvert

Organization of this page

Format

ajsdaconvert
        -i folder-for-pre-conversion-execution-result-files
        -o folder-for-post-conversion-execution-result-files
        [-q]

Function

The ajsdaconvert command converts a previous version of the execution result files stored in the folder for pre-conversion execution result files to the current version, and then outputs the files to the folder for post-conversion execution result files.

Since the previous versions of the execution result files are unavailable for the current version of macro functions, you need to convert the execution result files before performing export.

When you upgrade the version of JP1/AJS3 - Definition Assistant, use this command to convert the previous version of the execution result file to the current version.

Although the folder for pre-conversion execution result files contains multiple versions of files, you do not need to identify each file's version. This is because all the files in this folder will be stored with the current version of file format into the folder for post-conversion execution result files.

Permissions for execution

None

Command stored in:

JP1/AJS3 - Definition-Assistant-installation-folder\bin

Arguments

-i folder-for-pre-conversion-execution-result-files

Specifies the folder that stores the previous versions of execution result files. Specify the absolute path of the folder.

The specifiable length of a character string is 1 through 184 bytes.

Make sure that the number of execution result files stored in this folder does not exceed 100.

-o folder-for-post-conversion-execution-result-files

Specifies the folder that stores the execution result files after conversion. Specify the absolute path of a folder that differs from the one specified in the -i option.

You can specify from 1 to 184 characters (units: bytes).

The specifiable length of a character string is 1 through 184 bytes.

-q

Outputs the KAVZ0615-Q message if another file with the same already exists in the folder for post-conversion execution result files. This message asks you whether you want to overwrite the file. Choosing Yes button overwrites the file. Choosing No button does not overwrite the file.

Notes

Return values

None

Example 1

In this example, the command converts the execution result file (previous version) in the "C:\Program Files\Hitachi\JP1AJS2DA\backup_old" folder to the format of the current version and then stores the file in the "C:\Program Files\Hitachi\JP1AJS2DA\backup" folder:

ajsdaconvert -i "C:\Program Files\Hitachi\JP1AJS2DA\backup_old"
             -o "C:\Program Files\Hitachi\JP1AJS2DA\backup"

Example 2

This example assumes that the version of JP1/AJS3 - Definition Assistant has been upgraded, but the current version of the program may use the previous version of execution result files to perform export. In this example, the command converts all the versions of execution result files to the current version. The execution result files are stored by their version in the following folders:

ajsdaconvert -i "D:\BACKUP\ajsdabackup70"
             -o "C:\Program Files\Hitachi\JP1AJS2DA\backup"
ajsdaconvert -i "D:\BACKUP\ajsdabackup70B"
             -o "C:\Program Files\Hitachi\JP1AJS2DA\backup"

Supplementary note

When all the files are converted, the message dialog box appears, indicating the processing results. The command also outputs the processing results to the log file, unless a command option error occurred.

Log file format

Stored in:

For Windows XP Professional and Windows Server 2003:

JP1/AJS3 - Definition-Assistant-installation-folder\log

For Windows Vista, Windows Server 2008, Windows 7, Windows Server 2012, Windows 8, and Windows 8.1:

%ALLUSERSPROFILE%\Hitachi\JP1\JP1_DEFAULT\JP1AJS2DA\log

The default value of %ALLUSERSPROFILE% is system-drive\ProgramData.

Log file name

Current log file name: ajsdaconvert.log (latest result)

Storage log file name: ajsdaconvert0[1-5].log (The previous result is 01, the oldest result is 05. Maximum of five generations are saved.)

Output format

[Figure]

#1

Indicates the year, month, day, hour, minute, and second in the YYYY/MM/DD hh:mm:ss format.

#2

Outputs the following information:

Table 7‒3: Output information for the processing result

Output information

Meaning

Remarks

OK

Successful

Including the case where the command just copied the files without converting them.

SKIP (reason-code)

Unprocessed

The meaning of the reason code is:

01

The file is other than the definition information management template.

02

A file for the English version of JP1/AJS3 - Definition Assistant is specified in the Japanese version. Alternatively, a file for the Japanese version of JP1/AJS3 - Definition Assistant is specified for the English version.

03

A file is the master file or its name is same as the master file.

NG (reason-code)

Failure

The meaning of the reason code is:

10

An attempt to read the file before conversion caused an error (processing continues).

11

An attempt to save the file after conversion caused an error.

12

There is a file with the same name as the file before conversion in the post conversion execution result folder and No button is pushed for the overwrite confirmation dialog box (processing continues).

13

An error occurred during conversion.

99

Other error that cannot be identified.

#3

If processing is interrupted due to an error, information following this line will not be output.

Output example

The following shows an output example when the ajsdaconvert command terminates normally.

[Figure]