FALSE

Page Nav

HIDE

Grid

GRID_STYLE

IDCAMS Utilities(GDG)

IDCAMS: //stepname EXEC       PGM=IDCAMS //SYSPRINT       DD    SYSOUT=* //ddname    DD    DSN= //SYSIN               DD    * command stat...

IDCAMS:

//stepname EXEC       PGM=IDCAMS
//SYSPRINT       DD    SYSOUT=*
//ddname    DD    DSN=
//SYSIN               DD    *
command statements
/*

code the command statements from column:2 through column:72 Continue a command statement by coding a hyphen after a complete subparameter leaving atleast one blank between the subparameter and the hyphen.

COPY:
REPRO INFILE(in ddname) OUTFILE(out ddname)         COUNT(y) SKIP(x)
X records omitted.from x+1 th record ,y records copied into output dataset.

LISTCAT:
LISTCAT ENTRIES(‘MUTHU.TRAINING.DATSET’) ALL
ALL can be replaced by NAME,VOLUME,ALLOCATION,HISTORY..etc

PRINT:
          PRINT INFILE(ddname)       CHAR        COUNT(y) SKIP(x)

RENAME:
          ALTER      olddatasetname   NEWNAME(newdatasetname)

DELETE:
          DELETE datasetname PURGE ERASE
GDG:

Generation datagroup is a group of chrnologically or functionally related datasets.They are processed periodically often by adding a new generations, and perhaps discarding the oldest generation.


DEFINE GDG(NAME(MUTHU.EDS.MAINFRAM) LIMIT(255) EMPTY SCRATCH FOR(365 ))

LIMIT-max number of GDG to keep
EMPTY-sys will uncatalog all gdg when limit is reached.
SCRATCH-scratches a dataset when uncatalogued.
FOR(days)-Optional.

MUTHU.EDS.MAINFRAM(0)  gives you the current version
MUTHU.EDS.MAINFRAM(-1) gives you previous version.

No comments