RunProductionSchedulingBackup macro
The RunProductionSchedulingBackup macro is used to create a backup of a Production
Scheduling model. This macro is executed at System level.
These parameters are used to create a backup:
- Model Name
- The name of the Production Scheduling model for which a backup is to be created.
- Expire Time
- The time period for which the backup is retained in the database,
before it is deleted. The time is expressed as an integer and the unit is hours (H) or
days (D). The format used is xH and or xD. For example, 12H indicates 12 hours.Note: If this value is not specified, the backup is retained indefinitely.
- Backup Name
- The description for the backup.
For executing the macro, the values of the Command field must be specified in
this format: RunProductionSchedulingBackup (Model Name, [Expire After], [Backup
name])
Note: The optional
parameters are specified in [ ].
Requirement | Parameter |
---|---|
Backup the Production Scheduling model 'Olio', backup to expire after 7 days. The backup is not provided with a name. | RunProductionSchedulingBackupBackup("Olio","7D"," ") |
Backup the Production Scheduling model 'Olio' with the name Weekly Backup. The backup is set to expire after 7 days. | RunProductionSchedulingBackupBackup("Olio","7D",”Weekly Backup”) |
In case validation error occurs during the execution of the macro, the process is aborted and
the related error message is displayed. This table lists the possible error messages:
Validation | Error message |
---|---|
Check that the selected model exists | Model (0) cannot be found |
Check the Expiry time is valid | Expiry time (0) is not valid. |