Previous Topic: #DELSCR ParametersNext Topic: #DELSCR Example


#DELSCR Status Codes

By default, the #DELSCR request is unconditional; any runtime error will result in an abend of the issuing task. You can request return of control to the issuing program by using the COND parameter to avoid an abend.

After completion of the #DELSCR, the value in register 15 indicates the outcome of the operation. The following is a list of the Register 15 values and the corresponding meaning:

X'00'

The request has been serviced successfully.

X'04'

The request cannot be serviced due to an invalid parameter list

X'08'

The request cannot be serviced because the requested scratch area ID (SAID) cannot be found.

X'0C'

The request cannot be serviced because the requested scratch record ID (SRID) cannot be found within the named SAID.

X'1C'

The request cannot be serviced due to an I/O error during processing.

If an I/O error occurs while processing a #DELSCR request, the system will return the address of the IDMS communications block to register 1. In this situation, you can check the status code in the ERRSTAT field for more information (see ERRSTAT Field and Codes). If no error occurs during processing, a user-defined register assigned by the RTNSRID parameter will contain the SRID of the last scratch record deleted.