Previous topic |
Next topic |
Contents |
Glossary |
Contact z/OS |
PDF
Reusable JCL: Deleting some VSAM clusters Reusable JCL collection |
|
Modify this JCL sample to delete one or more VSAM clusters, using DFSMSdfp™ access method services (IDCAMS). Before you begin
About this task The steps that follow provide line-by-line instructions
for modifying this JCL sample:
//jobname JOB (start of JOB statement parameters) //stepname EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * DELETE 'entryname' DELETE 'entryname,entryname,entryname' /*In the JCL statements that appear in code examples, lowercase text indicates items that you need to modify. Except for a few cases, lowercase alphabetic characters cannot be used in JCL. All
jobs require JOB and EXEC statements, so this sample contains both:
When you use the access method services through JCL, you
must define two specific DD statements in the job step:
If you modify this sample to complete more complex tasks, or if you encounter JCL errors, see z/OS MVS™ JCL Reference (SA22-7597), which is the comprehensive source of syntax rules and statement parameter descriptions. Another useful reference is z/OS DFSMS™ Access Method Services for Catalogs (SC26-7394), which contains background information about VSAM clusters and details about using IDCAMS for other operations. Procedure Results When the job ends, you will receive a message
indicating one of three conditions: job successful, JCL error, or
program abend. Use your installation's viewing facility (for example,
SDSF) to view the output and determine whether the job completed successfully. |
Copyright IBM Corporation 1990, 2010
|