AMT Help Files

AMT JCL

 This information is incomplete.

It is possible to make configuration changes without rebuilding AMT-JCL using a JSON configuration file. This is optional.

Python scripts load the settings from the configuration file upon start. The location of the JSON configuration file can be set using the AMT_JCL_CONFIG Windows environment variable.

Setting the Environment Variable

The file path pointing to the location of the JCL configuration file can be set using the AMT_JCL_Config environment variable. Follow the instructions below:

  1. Open the Settings of Windows and navigate to System.
  2. Click on Advanced system settings A new dialog appears.
  3. Click on the Environment Variables button.
  4. Under System variables, click on the New button.
  5. Fill out the Variable name and Variable value as follows:
    1. Set the Variable name to AMT_JCL_CONFIG.
    2. Set the Variable value to point to the location of the JCL configuration file.
  6. Click the OK button.

Available Configuration Settings

The following settings are available in the jcl_config.json file:

Setting Available Values Description
customer_library String  
app_name String Set the application name.
application_kind String Set the application kind.
job_summary Boolean  
include_folder String  
proc_libs_folder String Path to the directory of the JCL library.
file_encoding String ASCII or UTF8
block_size Integer
max_wait_time Integer  
max_gdg_generation Integer  
file_extension String Set the file extension.
print_extension String Set the print file extension.
abend_on_missing_file Boolean  
virtual_data_path String  
keep_all_files Boolean  
int_rdr_folder String  
int_rdr_queue String  
default_printer String Set the name of the printer. Use the "DEFAULT" value to use the printer that is designated as default.
cert String Path to the ... file.
app_host String Set to the name of the host server.
app_grpc_port String Set the GRPC port of the host server.
job_finished_polling_interval Float Set the time in ?seconds? to poll for finished jobs.
use_date String  
 Paths in JSON files
File paths in JSON files use forward slashes as opposed to backslashes in Windows.

Example file

{
    "customer_library": "",
    "app_name": "TEST-APP",
    "application_kind": "",
    "job_summary": true,
    "include_folder": "",
    "proc_libs_folder": "C:/AmtJava/amt-go/parent-scripting/jcl/python/amt-jcl/amt_jcl/procs",
    "file_encoding": "ASCII",
    "block_size": 32000,
    "max_wait_time": 1,
    "max_gdg_generation": 255,
    "file_extension": ".DAT",
    "print_extension":  ".PRN",
    "abend_on_missing_file":  false,
    "virtual_data_path": "",
    "keep_all_files": false,
    "int_rdr_folder": "",
    "int_rdr_queue": "",
    "default_printer":  "DEFAULT",
    "cert":  "C:/Sources/amt-go-java/parent-scripting/jcl/python/amt-jcl/amt_jcl/amt/platform/communication/grpc/certs/ca.pem",
    "app_host": "localhost",
    "app_grpc_port":  "8080",
    "job_finished_polling_interval": 0.5,
    "use_date":  ""
}