RunProductionSchedulingBackup macro

The RunProductionSchedulingBackup macro is used to create a backup of a Production Scheduling model. This macro is executed at System level.

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 [ ].

This table lists the parameters used to create a backup:

Parameter Name Description
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.

This table lists the examples of the RunProductionSchedulingBackupBackup macro:

Requirement Syntax
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 Condition 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.