6.2.18 Executing a job whose executable file name has an extension longer than three bytes
Normally, the executable file specified for a job is executed by the application (.exe) associated with the executable file's extension, the maximum length of which is three bytes. Therefore, if the extension is four or more bytes, the executable file for the job# might be opened by the wrong application or the job might not be able to start.
To correctly run a job whose executable file has an extension longer than three bytes, specify the appropriate setting by using the procedure described below.
Note that the setting must be specified on the host on which the job is executed.
- #:
-
Refers to PC jobs and queue jobs executed on the Windows version of JP1/AJS3, and submit jobs executed by the jpqjobsub command.
- Organization of this subsection
(1) Definition procedure
-
In Windows Control Panel, open the Services administrative tool, and stop the following service:
-
When Standard is specified for Exec. Service of the job
JP1/AJS3 service
-
Queueless Agent is specified for Exec. Service of the job
JP1/AJS3 Queueless Agent service
- Cautionary note:
-
In a cluster system, check the cluster settings, and also stop the JP1/AJS3 service on each logical host.
-
-
Use the following method to set the environment setting parameters described in (2) below:
-
For environment setting parameters in the definition key [{JP1_DEFAULT|logical-host-name}\JP1NBQAGENT\Job]:
Execute the following command:
jajs_config -k definition-key "parameter-name"=value
-
For environment setting parameters in the definition key [JP1_DEFAULT\JP1QLAGENT]:
In a text editor such as Notepad, create a configuration file that defines the environment setting parameters, and then execute the following command:
jbssetcnf configuration-file-name
The path of the jbssetcnf command is JP1/Base-installation-folder\bin\jbssetcnf. For details on this command, see the Job Management Partner 1/Base User's Guide.
-
-
Restart the services that you stopped in step 1.
The new settings are applied.
(2) Environment setting parameters
Definition key |
Environment setting parameter |
Explanation |
---|---|---|
[{JP1_DEFAULT|logical-host}\JP1NBQAGENT\Job]#1 |
"ENABLE_LONG_EXT"= |
This parameter applies when Standard is specified for Exec. Service of the job. The parameter specifies whether the job is to be executed by an associated application whose extension is longer than three bytes. |
[JP1_DEFAULT\JP1QLAGENT]#2 |
"ENABLE_LONG_EXT"= |
This parameter applies when Queueless Agent is specified for Exec. Service of the job. The parameter specifies whether the job is to be executed by an associated application whose extension is longer than three bytes. |
- #1:
-
The specification of the {JP1_DEFAULT|logical-host} part depends on whether the host is a physical host or a logical host. For a physical host, specify JP1_DEFAULT. For a logical host, specify the logical host name.
- #2:
-
This setting applies to both physical and logical hosts.
For details about the definition of this environment setting parameter, see the following:
-
2.3.2(42) ENABLE_LONG_EXT in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2
-
2.7.2(13) ENABLE_LONG_EXT in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 2
(3) Notes
-
If this setting is enabled, you cannot specify any arguments following an executable file name in the Define Details dialog box for a job. If you specify arguments, the job might terminate abnormally.
-
Before enabling this setting, make sure that the applicable extensions of more than three bytes have been associated with applications.
The following describes how to associate an extension with an application:
In Windows Server 2012 or Windows Server 2008:
-
Use the ftype command to register the application with which you want to associate an extension.
-
Use the assoc command to associate the extension with the application you registered in step 1.
-
Restart the OS.
For details about the ftype and assoc commands, see Windows Help.
In Windows Server 2003 or earlier:
-
In Windows Control Panel, double-click Folder Options. In the displayed dialog box, click the File Types tab.
-
After selecting the extension that you want to set, click the Advanced button to open the Edit File Type dialog box. Then, in the Actions list box, select Open, and register the application that you want to associate with the extension.
-
Restart the OS.
-