Hitachi

JP1 Version 12 JP1/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.

After conversion, the execution result file is converted to xls format in the 32-bit version and to xlsm format in the 64-bit version.

Use this command to convert the file format. Note that a file can be converted from xlsm format to xls format only if the number of definitions is 65,000 units or less.

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.

We recommend that if execution result files to be stored are large in size (more than dozens of MBs per file), the number of files stored should be about 20 files because it takes time to process them.

-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:

%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.

04

A file in xlsm format for the new version is specified. (This code is output when the command is executed in the 32-bit version.)

05

A file in xls format for the new version is specified. (This code is output when the command is executed in the 64-bit version.)

06

The number of files in xlsm format exceeds 65,000 units (This code is output when the command is executed in the 32-bit version.)

07

The name of the file before the extension is the same as that of the file already converted.

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]