Mainframe Path Start learning free
CoreCommand

IDCAMS command reference

Defining, copying, listing and deleting — VSAM and catalog operations.

CommandDoes
DEFINE CLUSTERCreate a VSAM file
DEFINE ALTERNATEINDEX / PATHCreate an alternate index and the path over it
DEFINE GDG(NAME(x) LIMIT(n))Create a generation data group
DEFINE NONVSAMRecatalog a non-VSAM dataset
BLDINDEXPopulate an alternate index from the base cluster
REPROCopy records in either direction
PRINT INFILE(x) CHARACTER | HEX | DUMPPrint records for inspection
LISTCAT ENT('name') ALLFull catalog detail
DELETE 'name'Delete, with the data
DELETE 'name' NOSCRATCHRemove the catalog entry only
ALTER 'name' NEWNAME('new')Rename
VERIFY DATASET('name')Repair a cluster left open after a failure
SET MAXCC=0Reset the condition code so a failed command does not fail the step

Reading LISTCAT output

FieldWatch for
REC-TOTAL / REC-DELETEDHigh deletions mean wasted space
SPLITS-CI / SPLITS-CARising CA splits mean a reorganisation is due
EXTENTSApproaching the limit means a space abend is coming
HI-USED-RBA / HI-ALLOC-RBAHow full the allocation is

Stuck on something else?
Ask the community or search the full course.

Ask a question