SAMSCLS

The SAMSCLS routine completes processing of the subfile data, frees all buffers, and frees all storage related to processing of the subfile.
view
The SAMSCLS routine completes processing of the subfile data, frees all buffers, and frees all storage related to processing of the subfile.
Calling Parameters
None.
Return Codes
Output Return Codes (general register 15):
  • 0
    Subfile successfully closed
  • 4
    Not used
  • 8
    Error closing subfile
Calling Example: Assembler
The following is an example using assembler:
. . . CALL SAMSCLS CLOSE SUB-FILE LTR 15,15 CHECK RETURN CODE BNZ DBERR
Calling Example: COBOL
The following is an example using COBOL:
. . . CALL 'SAMSCLS'. IF RETURN-CODE NOT = ZERO GO TO DBERR.