Previous Topic: #PUTQUE ExampleNext Topic: #PUTSCR Syntax


#PUTSCR—stores or replaces a scratch record

The #PUTSCR statement stores or replaces a scratch record in the scratch area of the dictionary. For new records, #PUTSCR generates an index entry in a scratch area associated with the issuing task. If the scratch area does not already exist, the system allocates it dynamically in the storage pool.

After completion of the #PUTSCR function, control is returned to the issuing program at the next sequential instruction following the #PUTSCR request. Through the REPXIT, NEWXIT, and EREPXIT parameters, you can request return of control to a specified label after a successful replace or store, or after confirmation that the new record already exists for the task.