z/OS DFSMS Access Method Services Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Delete a Member of a Partitioned (Non-VSAM) Data Set in a Catalog: Example 13-A

z/OS DFSMS Access Method Services Commands
SC23-6846-01

In this example, the MEM1 member of partitioned data set EXAMPLE.NONVSAM2 is deleted with minimal allocation serialization.
//DELET10    JOB   ...
//STEP1     EXEC  PGM=IDCAMS
//MYMEMBER  DD DISP=SHR,DSN=EXAMPLE.NONVSAM2(MEM1)
//SYSPRINT  DD    SYSOUT=A
//SYSIN     DD    *
     DELETE -
            EXAMPLE.NONVSAM2(MEM1)  FILE(MYMEMBER)-
     /*
The DELETE command deletes a member of a partitioned data set, EXAMPLE.NONVSAM2(MEM1). Its parameters are:
  • EXAMPLE.NONVSAM2(MEM1) is the entryname of a member of the partitioned data set, EXAMPLE.NONVSAM2. The entryname identifies the object to be deleted.
  • The FILE parameter points to the DD statement MYMEMBER which allocates the PDS as SHR to the job, hence avoiding dynamic allocation with OLD of the entire PDS.

The second DELETE command deletes all remaining members.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014