To automatically delete Robot Alert history using Robot Schedule, you must first create a reserved command variable that calculates the date minus seven days. Then, you use that variable in the programs RBA905 and RBA906 to delete all but the last seven days of transmission and message history.
In Robot Schedule, access the Reserved Command Variable panel.
In the Parameter field, enter I-007. This means you want the ISO date minus seven days.
Press function key F12 to save and exit.
Find the new variable in the list panel and enter a 2 next to it. This shows you a value. If the date is seven days earlier, you have defined the variable successfully.
Note: When you use a reserved command variable with programs RBA905 and RBA906, the variable must call the program RBT013.
In Robot Schedule, create a command type job for the type of history you want to delete:
To delete Robot Alert transmission history, use the following command:
CALL PGM(RBA905) PARM('1940-01-01@@@@#MM#7Y00000000X')
To delete Robot Alert message history, use the following command:
CALL PGM(RBA906) PARM('1940-01-01@@@@#MM#7Y00000000X')
where: PARM is 29 characters.
In the above examples:
Note: To delete all Robot Alert history, specify the From date as 1940-01-01 and the To date as 2039-12-31.
Still have questions? We can help. Submit a case to Technical Support.