Calling AMS from an Application Program

Use the NORESET option of the AMSERV command to indicate that the call to the access method services (AMS) is being made dynamically by an application program and that the VSAM environment is not to be reset after the AMS request is complete.

Note that when this option is specified, all VSAM storage will remain allocated until:
  • A SET DOS OFF command is issued.
  • An EXECOS command is issued.
  • An ABEND occurs, in which case the AMSERV environment cannot be reset correctly. If a subsequent AMSERV abends, you must re-IPL CMS.
  • The Ready; appears.
  • Another AMSERV command is issued without the NORESET option.
  • A DOS EOJ macro or a DOS CANCEL macro is issued.
  • The CATCHECK command is issued.
  • Upon completion of an OS/VSAM program call from an exec language program.

This option is most useful when the AMSERV command is issued from an exec or program.