Skip to content

UPDATE Command

With OPENworkshop the UPDATE command is supported by the Script-IV language. The command combines capabilities of ADD, DELETE and CHANGE commands.

UPDATE is syntactically similar to the CHANGE command. The main difference is a new function string. This string indicates whether the UPDATE command is to “A” - ADD, “U” - CHANGE, or
“D” - DELETE the specified record(s).

UPDATE also supports two new areas of Script functionality:

  • Link I/O Trigger Processing
  • Format-based Delete Values Processing and Audit Processing

The UPDATE command supports Transaction Processing. It creates a transaction to include all I/O triggers that are executed prior to the initial UPDATE being completed. If any of the triggers fail, the UPDATE will rollback any Basic I/O that has taken place. If the triggers pass, the initial UPDATE is completed and all data within the transaction is committed to the database. By default, Transaction Processing is enabled. It can be disabled by adding the following entry to the IPLINPUT file:

PRM NOTRANS

For a summary of functionality see the Comparison of Functionalities chart below: