Previous Topic: #GETQUE ExampleNext Topic: #GETSCR Syntax


#GETSCR—retrieves a scratch record

The #GETSCR statement retrieves a scratch record and places it in a storage area associated with the issuing program. The storage area must already be allocated to the requesting task; no implicit #GETSTG function is performed during the #GETSCR operation. If the scratch record is larger than the designated storage area, the record is truncated as necessary.

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