ARCHIVE and DELARC Examples
The ARCHIVE command can be used to manually archive a data set regardless of its primary days non-usage attribute value, or for data sets that are not eligible for automatic archive in DFSMS. The DELARC command can be used to manually delete an archived data set that is no longer needed, without having to recall it.
SCENARIO A: ARCHIVING AND DELETING LARGE FILES THAT ARE NO LONGER NEEDED
Large dump files are archived after they are analyzed, in order to free up space on primary storage:
1
TSO M9CLI ARCHIVE M9.APPL.DUMP.PDB2.D22052019
2
TSO M9CLI ARCHIVE M9.APPL.DUMP.TCIC.D16062019
Copied!
The raw dump files are kept in archive until the bug is solved, and are then deleted in a batch job, using the DELARC command:
1
//M9CLISMF JOB ACCT#,TIME=NOLIMIT,REGION=0M
2
//*
3
//* DELETING RAW DUMP FILES FROM ARCHIVE
4
//*
5
//M9CLI EXEC PGM=IKJEFT01
6
//STEPLIB DD DISP=SHR,DSN=SYS2.MODEL9.LOADLIB
7
//SYSEXEC DD DISP=SHR,DSN=M9.ALL.EXEC
8
//SYSTSPRT DD SYSOUT=*
9
//SYSPRINT DD SYSOUT=*
10
//SYSTSIN DD *
11
M9CLI DELARC M9.APPL.DUMP.PDB2.D22052019
12
M9CLI DELARC M9.APPL.DUMP.TCIC.D16062019
13
/*
14
//
Copied!
If the data sets are not yet expired, the DELARC command will notify - but not delete the files. In this case, the command should be used with the PURGE keyword and the SYSTSIN would be as follows:
1
//SYSTSIN DD *
2
M9CLI DELARC M9.APPL.DUMP.PDB2.D22052019 PURGE
3
M9CLI DELARC M9.APPL.DUMP.TCIC.D16062019 PURGE
4
//
Copied!
Last modified 1mo ago
Export as PDF
Copy link