Functional Command Syntax Summary

This chapter provides reference information about the following functional commands.
Table 1. Summary of AMS commands
Command Functions
ALLOCATE Allocates Virtual Storage Access Method (VSAM) and non-VSAM data sets.
ALTER Alters attributes of data sets, catalogs, tape library entries, and tape volume entries that have already been defined.
BLDINDEX Builds alternate indexes for existing data sets.
CREATE Creates tape library entries and tape volume entries.
DCOLLECT Collects data set, volume usage, and migration utility information.
DEFINE Defines the following objects:
  • ALIAS Defines an alternate name for a non-VSAM data set or a user catalog.
  • ALTERNATEINDEX defines an alternate index.
  • CLUSTER Defines a cluster for an entry-sequenced, key-sequenced, linear, or relative record data set.
  • GENERATIONDATAGROUP Defines a catalog entry for a generation data group.
  • NONVSAM Defines a catalog entry for a non-VSAM data set.
  • PAGESPACE Defines an entry for a page space data set.
  • PATH Defines a path directly over a base cluster or over an alternate index and its related base cluster.
  • USERCATALOG|MASTERCATALOG Defines a user catalog.
DELETE Deletes catalogs, VSAM data sets, and non-VSAM data sets.
DIAGNOSE Scans a basic catalog structure (BCS) or a VSAM volume data set (VVDS) to validate the data structures and detect structure errors.
EXAMINE Analyzes and reports the structural consistency of either an index or data component of a key-sequence data set cluster.
EXPORT Disconnects user catalogs, and exports VSAM data sets and catalogs.
EXPORT DISCONNECT Disconnects a user catalog.
IMPORT Connects user catalogs, and imports VSAM data sets and catalogs.
IMPORT CONNECT Connects a user catalog or a volume catalog.
LISTCAT Lists catalog entries.
PRINT Prints VSAM data sets, non-VSAM data sets, and catalogs.
REPRO Performs the following functions:
  • Copies VSAM and non-VSAM data sets, user catalogs, master catalogs, and volume catalogs
  • Splits catalog entries between two catalogs
  • Merges catalog entries into another user or master catalog
  • Merges tape library catalog entries from one volume catalog into another volume catalog.
SHCDS Lists SMSVSAM recovery associated with subsystems spheres and controls that recovery. This command works both in batch and in the TSO/E foreground. Includes subcommands that allow you to perform the following tasks.
  • List information kept by the SMSVSAM server and the catalog as related to VSAM RLS or DFSMStvs.
  • Take action on work that was shunted.
  • Control a manual forward recovery.
  • Run critical non-RLS batch window work if necessary.
  • Perform a subsystem cold start.
VERIFY Performs the following functions:
  • Causes a catalog to correctly reflect the end of a data set after an error occurred while closing a VSAM data set. The error might have caused the catalog to be incorrect.
  • Start of changeCauses VSAM Record Management VERIFY to back out or complete any interrupted CA reclaim in addition to regular IDCAMS VERIFY functions.End of change
  • Start of changeWhen run with a preceding EXAMINE, causes VERIFY to attempt to fix any errors it can from the information passed in by EXAMINE. Only the HURBA will be corrected if there is concurrent access on the data set when VERIFY is being run. When run with a preceding EXAMINE, causes VERIFY to attempt to fix any errors it can from the information passed in by EXAMINE. Only the HURBA will be corrected if there is concurrent access on the data set when VERIFY is being run.End of change