Previous Topic: #DELSCR Status CodesNext Topic: #DEQ—releases resources acquired by the issuing task


#DELSCR Example

The following example of the #DELSCR statement deletes the current record within the scratch area labeled SCRAREA1. The ID of the deleted record will be placed in register 1. The request is not conditional; any error condition resulting from the execution of this statement will result in an abend of the issuing task.

#DELSCR SAID='SCRAREA1',LOC=CURRENT,RTNSRID=(R1),COND=NO