11.1.2 Batch Import Export Utility
This utility is used to export and import batch objects like batch, batchgroups and schedules. This script works in two modes Export and Import. The first parameter of the script decides which mode it is. The Export mode requires exactly five parameters, while the Import mode requires seven parameters. Sequence of the parameters is mentioned below:
For Batch Export:
./batch_export_import_utility.sh EXPORT WORKSPACE LOGIN_USER OBJECT_CODE OBJECT_TYPE
For Batch Import:
./batch_export_import_utility.sh IMPORT WORKSPACE LOGIN_USER OBJECT_CODE OBJECT_TYPE OVERWRITE FILE_NAME
Table 11-1 Parameter Description
Parameter | Description | Example |
---|---|---|
WORKSPACE | Workspace from which/into which the batch object must be exported/imported. | CS |
LOGIN_USER | Any valid user which has access to the system. | SAUSER |
OBJECT_CODE | Code of the batch object being exported/imported. If object is of schedule type, please use schedule id instead of code. | BATCH_1 |
OBJECT_TYPE | Type of the object. e.g., batch, batchgroup, schedule. Must be given in lowercase. | batch |
OVERWRITE | 'Y' if you want to overwrite existing object while importing, 'N' if you don’t want to. | Y/N |
FILE_NAME | The format is <workspace>/<object_type>/<object_code> | CS_batch_BATCH_1 |