SAMCLOSE

The SAMCLOSE routine closes a previously-opened database, frees all buffers, and frees all storage obtained to process data in the database.
view
The SAMCLOSE routine closes a previously-opened database, frees all buffers, and frees all storage obtained to process data in the database.
Calling Parameters
None.
Return Codes
Output Return Codes (general register 15):
  • 0
    Database successfully closed
  • 4
    Not used
  • 8
    Error in closing the database
Calling Example: Assembler
The following is an example using assembler:
. . . CALL SAMCLOSE CLOSE DATABASE LTR 15,15 CHECK RETURN CODE BNZ DBERR
Calling Example: COBOL
The following is an example using COBOL:
. . . CALL 'SAMCLOSE'. IF RETURN-CODE NOT = ZERO GO TO DBERR.