Scratch Records

Scratch records allow a task to pass information to subsequent tasks, thereby providing data continuity among tasks. The scratch records are used only for temporary storage of data and are not saved across a system shutdown or a system crash.
idmscu
Scratch records allow a task to pass information to subsequent tasks, thereby providing data continuity among tasks. The scratch records are used only for temporary storage of data and are not saved across a system shutdown or a system crash.
Scratch Area ID
A scratch area is identified by an eight-character name. Requests to access a scratch record can use the scratch area id to specify the area with which the object record is associated. If a request to store a scratch record specifies an unknown scratch area id, a scratch area is created with the specified id.
Scratch records are also assigned numeric identifiers either by the application developer or by the system. Records in a scratch area are arranged sequentially in ascending order, according to the value of the scratch record identification. System-assigned identifiers are sequenced last in a scratch area.
All scratch management command clauses must be coded in the same order in which they appear in the syntax.